請使用列表索引根據整型變量?month?判斷特定月份有多少天,并將該值存儲在整型變量?num_days?中。例如,如果?month?是 8,num_days?應該設為 31,因為第八個月份八月應該有 31 天month = 8days_in_month = [31,28,31,30,31,30,31,31,30,31,30,31]# use list indexing to determine the number of days in monthprint(num_days)
pythan這題怎么做
慕斯卡5910870
2018-09-13 23:54:28