Python3 题解 | #四季#

四季

http://www.nowcoder.com/practice/eaf21203b61b4a689987fdc165d00dfc

#python题解#

month = int(input()[-2:])
if 3 <= month <= 5:
    print("spring")
elif 6 <= month <= 8:
    print("summer")
elif 9 <= month <= 11:
    print("autumn")
else:
    print("winter")
全部评论

相关推荐

2 收藏 评论
分享
牛客网
牛客企业服务