Python 判断闰年程序代码示例
year = int(input('请输入年份: '))
if year % 4 == 0 and year % 100 != 0 or year % 400 == 0: print(year, '是闰年') else: print(year, '是平年')
原文地址: https://www.cveoy.top/t/topic/lvEi 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
year = int(input('请输入年份: '))
if year % 4 == 0 and year % 100 != 0 or year % 400 == 0: print(year, '是闰年') else: print(year, '是平年')
原文地址: https://www.cveoy.top/t/topic/lvEi 著作权归作者所有。请勿转载和采集!