返回列表 發帖

小星星 (二)

  1. for i in range(5,0,-1):
  2.     for j in range(i-1,0,-1):
  3.         print(" ",end="")
  4.     for j in range(11-i*2,0,-1):
  5.         print("*",end="")
  6.     print()
複製代碼

  1. for i in range(5,0,-1):
  2.     for j in range(i-1,0,-1):
  3.         print(" ",end=" ")
  4.     for j in range(11-i*2,0,-1):
  5.         print("*",end=" ")
  6.     print()
複製代碼

TOP

返回列表