用python编写程序:打印以下图案* ** *** **** *****
时间: 2023-08-31 21:05:00 浏览: 319
我用python写的print输出
Sure, here's the code to print the pattern:
```python
for i in range(1,6):
for j in range(i):
print('*', end='')
print()
```
Output:
```
*
**
***
****
*****
```
阅读全文