返回列表 發帖

for 迴圈 (一)

直向顯示第1名~第5名

  1. for i in range(1,6):
  2.     print("第",i,"名")
複製代碼
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

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

TOP

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

TOP

  1. list=["a","b","c","d","e","f",]
  2. for i in range(1,6):
  3.     print()
  4.    
複製代碼

TOP

返回列表