python学习----判断是否是闰年

year = int(input("Please input the year:"))
if (year % 4 == 0 and year % 100 != 0) or (year % 400 == 0):
print("这是闰年")
else:
print("这不是闰年")
posted @ 2024-05-09 20:15  飞虎就是我  阅读(1)  评论(0编辑  收藏  举报