题目:
代码:
def is_leap(year):
leap = False
if year % 4 == 0:
if year % 100 != 0:
leap = True
elif year % 400 == 0:
leap = True
return leap
year = int(input())
print(is_leap(year))
谢谢各位捧场啊!
点赞,留言,关注 ^ ^