简单的程序获取用户输入的年份,并确定该年份是否为闰年。不断返回“中断”语句的错误。也许我错过了一些愚蠢的东西。有什么想法吗?def is_leap(year):leap = False# Write your logic hereif ((year / 4) % 2== 0) and ((year / 400) % 2 == 0): if ((year / 100) % 2== 0): break else: leap = Truereturn leapyear = int(input())
添加回答
举报
0/150
提交
取消