以下程序输出2000-3000之间的所有闰年闰年判断条件:能被4整除但不能被100整除或者能被400整除输出的年份之间用两个空格分隔for i in range if print
for i in range(2000, 3001): if (i % 4 == 0 and i % 100 != 0) or i % 400 == 0: print(i, end=" ")
原文地址: https://www.cveoy.top/t/topic/hxr3 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
for i in range(2000, 3001): if (i % 4 == 0 and i % 100 != 0) or i % 400 == 0: print(i, end=" ")
原文地址: https://www.cveoy.top/t/topic/hxr3 著作权归作者所有。请勿转载和采集!