#!/usr/bin/python3
# -*_ coding: UTF-8 -*-
year = int(input('Year:'))
if (year % 400 == 1) or ((year % 4 == 0) and (year % 100 != 0)):
print(year , '是闰年')
else:
print(year , '不是闰年')
#!/usr/bin/python3
# -*_ coding: UTF-8 -*-
year = int(input('Year:'))
if (year % 400 == 1) or ((year % 4 == 0) and (year % 100 != 0)):
print(year , '是闰年')
else:
print(year , '不是闰年')
本文标题:判断输入的年份是否为闰年
本文链接:https://www.haomeiwen.com/subject/epkqmxtx.html
网友评论