temp = input('请输入一个年份:')
while not temp.isdigit():
temp = input('抱歉输入有误,请从新输入:')
year = int(temp)
if year%400 == 0:
print(temp + ' 是闰年啊')
else:
if (year/4 == int(year/4) and (year/100 != int(year/100))):
print(temp + ' 是闰年啊')
else:
print(temp + ' 不是闰年啊')