用户输入月份,判断这个月是哪个季节-CSDN博客
文章浏览阅读2.7k次。month = int(input("请输入月份:"))month_list=[[3,4,5,"春季"],[6,7,8,"夏季"],[9,10,11,"秋季"],[12,1,2,"冬季"]]if month in range(1,13): for i in range(len(month_list)): if month in month_list[i]: ......
admin