python判断年份是否闰年
years =eval(input("请输入一个年份:"))if years%4==0 and years%100!=0: #能被4整除而不能被100整除 print('{}年是闰年'.format(years))elif years%400==0: ...