编写程序 判断2000年至2020年中哪些年份是闰年。
已帮助 人
回答
共1条回复-
for i in range(2000,3000+1): if (i%4==0 and i%100!=0)or(i%400==0): print(i)
for i in range(2000,3000+1): if (i%4==0 and i%100!=0)or(i%400==0): print(i)