32 字
约 6 秒
8
code4-7-闰年判断
2026-09-26
无标签
year = int(input('请输入年份'))
if not year % 4 and year % 100 or not year % 400:
print('是闰年')
else:
print('不是闰年')
评论
0 条
还没有评论,先写一条吧。
year = int(input('请输入年份'))
if not year % 4 and year % 100 or not year % 400:
print('是闰年')
else:
print('不是闰年')