返回列表 發帖

for 迴圈 (一)

#range(start,stop,step)
#range(1,6)->[1,2,3,4,5]


直向顯示第1名~第5名

  1. for i in range(1,6):
  2.     print("第",i,"名")
複製代碼

  1. for i in range(1,96):
  2.     print("第",i,"名")
複製代碼

TOP

  1. for h in range(1,1000000,2):
  2.     print(h)
複製代碼

TOP

  1. for i in range(1,6):
  2.       print("第",i,"名")
複製代碼

TOP

  1. for i in range(1,45167):
  2.     print(i)
複製代碼

TOP

  1. for i in range(1,6):
  2.     print("第",i,"名")
複製代碼

TOP

  1. for i in range(1,6):
  2.     print("第",i,"名")
複製代碼

TOP

  1. for i in range(1,6):
  2.     print("第",i,"名")
複製代碼

TOP

  1. for i in range(1,6):
  2.     print("第",i,"名")
複製代碼

TOP

返回列表