python 判断闰年

year = int(input())

if year % 400 == 0 or (year % 4 == 0 and year % 100 != 0):
print("是闰年")
else:
print("不是闰年")
posted @ 2020-01-14 10:55  i勤能补拙  阅读(1629)  评论(0编辑  收藏  举报