返回列表 發帖
for i in range(1,5+1):
    print('第'+str(i)+'名')

TOP

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

TOP

for i in range(5):
    print("第",i+1,"名",sep="")

TOP

for i in range(1,100+1):
    print('第'+str(i)+'名'+' xxx')

TOP

for i in range(1,6):
    print("第",i,"名")

TOP

for i in range(1,6):
    print("第",i,"名")

TOP

返回列表