Python数字金字塔1222333334444444555555555
时间: 2023-11-05 17:14:23 浏览: 124
以下是Python程序,用于生成数字金字塔1222333334444444555555555:
```python
rows = 5
for i in range(rows):
for j in range(i+1):
print(i+1, end="")
print()
```
输出:
```
1
22
333
4444
55555
```
阅读全文