i = 0
while i < 5:
    # print('*****') 效果与下行相同
    print('*'*5)
    i+=1

print('\n\n')

i = 1
while i < 6:
    print('*'*i)
    i+=1

print('\n\n')

i = 1
while i < 6:
    print('*'*(6-i))
    i+=1

 

python打印图形

 

相关文章:

  • 2021-05-08
  • 2022-12-23
  • 2021-05-18
  • 2021-05-03
  • 2021-05-13
  • 2021-12-15
  • 2021-11-11
  • 2022-12-23
猜你喜欢
  • 2021-04-29
  • 2021-09-02
  • 2022-02-27
  • 2022-12-23
  • 2022-02-11
  • 2022-12-23
  • 2021-07-20
相关资源
相似解决方案