BC57 四季
思路:
step1:输入字符,切割后两位并转换为int型;
step2:按照要求打印输出结果;
代码如下:
n = input()
s = int(n[-2]+n[-1])
if s == 3 or s == 4 or s == 5:
print('spring')
elif s == 6 or s == 7 or s == 8:
print('summer')
elif s == 9 or s == 10 or s == 11:
print('autumn')
elif s == 12 or s == 1 or s == 2:
print('winter')