本帖最後由 彭郁程 於 2022-8-19 14:59 編輯
- # -*- coding: utf-8 -*-
- """
- Created on Fri Aug 19 14:24:25 2022
- @author: student
- """
- list1=["甲","乙","丙","丁","戊","己","庚","辛"]
- list2=[28,27,27,26,28,29,30,27]
- for i in range(8):
- print("五年{}班有{}人".format(list1[i],list2[i]))
複製代碼- list1=["忠","孝","仁","愛","信","義","和","平"]
- list2=[28,27,27,26,28,29,30,27]
- for i in range(8):
- print("五年{}班有{}人".format(list1[i],list2[i]))
複製代碼 |