用python输出: * *** ***** *** *
时间: 2024-03-18 10:36:41 浏览: 58
以下是用Python输出乘法表和图形的例子:
1. 输出乘法表[^1]
```python
for i in range(1, 10):
for j in range(1, i+1):
print("%d*%d=%d" % (i, j, i*j))
print()
```
2. 输出图形[^2]
```python
print(" *")
print(" ***")
print("*****")
print(" ***")
print(" *")
```
阅读全文