python学习-判断闰年脚本
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))): &n...
注册时间:2013-08-15