返回列表 發帖
  1. list1=["忠","孝","仁","愛","信","義","和","平"]
  2. list2=[28,27,27,26,28,29,30,27]

  3. for i in range(8):
  4.     print("六年{}班有{}人".format(list1[i],list2[i]))   
複製代碼

TOP

  1. list1=["忠","孝","仁","愛","信","義","和","平"]
  2. list2=[28,27,27,26,28,29,30,27]

  3. for i in range(8):
  4.     print("六年{}班有{}人".format(list1[i],list2[i]))   
  5.         
  6. for i in range(8):
  7.     print(f"六年{list1[i]}班有{list2[i]}人")
複製代碼

TOP

返回列表