#判断是否为闰年 yearint(input(请输入一个整数: )) if (year%40 and year%100!0 ) or year%4000: print(f{year}是闰年) else: print(f{year}不是闰年)