编辑代码

n=int(input("输入月份:"))
if 3<n<5:
    print("春季")
if 6<n<8:
    print("夏季")
if 9<n<11:
    print("秋季")
if n==12 or 1<n<2:
    print("冬季")