返回列表 發帖
本帖最後由 彭郁程 於 2022-8-19 14:59 編輯
  1. # -*- coding: utf-8 -*-
  2. """
  3. Created on Fri Aug 19 14:24:25 2022

  4. @author: student
  5. """

  6. list1=["甲","乙","丙","丁","戊","己","庚","辛"]
  7. list2=[28,27,27,26,28,29,30,27]
  8. for i in range(8):
  9.     print("五年{}班有{}人".format(list1[i],list2[i]))
複製代碼
  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

本帖最後由 彭郁程 於 2022-8-19 15:04 編輯
  1. # -*- coding: utf-8 -*-
  2. """
  3. Created on Fri Aug 19 14:24:25 2022

  4. @author: student
  5. """

  6. list1=["甲","乙","丙","丁","戊","己","庚","辛"]
  7. list2=[28,27,27,26,28,29,30,27]
  8. for i in range(8):
  9.     print("五年{}班有{}人".format(list1[i],list2[i]))
複製代碼

TOP

返回列表