简单的程序获取用户输入的年份,并确定该年份是否为闰年。不断返回“中断”语句的错误。也许我错过了一些愚蠢的东西。有什么想法吗?
def is_leap(year):
leap = False
# Write your logic here
if ((year / 4) % 2== 0) and ((year / 400) % 2 == 0):
if ((year / 100) % 2== 0):
break
else:
leap = True
return leap
year = int(input())
30秒到达战场
千巷猫影
相关分类