python闰年判断
我自己写的python判断闰年代码
while True:
a = input('请输入年份:')
if a.isdigit():
a = int(a)
if a % 4 == 0 and a % 100 != 0 or a % 400 == 0:
print('是闰年')
else:
print('不是闰年')
else:
print('非整数')
这就是全部代码