Python题解
2025-08-09 09:36:00
发布于:浙江
3阅读
0回复
0点赞
既然史蒂夫都敲到month=int(input())了,那我们就接着帮他往下写叭~
month = int(input())
#判断是否不是月份
if month < 1 or month > 12:
print('error')
else:
if 0 < month and month < 4:
print('spring')
elif 3 < month and month < 7:
print('summer')
elif 6 < month and month < 10:
print('autom')
else:
print('winter')
这里空空如也
有帮助,赞一个