#输出2000~2050之间的闰年,每行5个,并显示有多少个闰年
count = 0
for i in range(2000, 2050):
if i % 4 == 0:
print(i, end="\t")
count = count + 1
if count % 4 == 0:
print()
print("统计结果:在2000与2050之间总共有{}个瑞年".format(count))
#谢谢观看 欢迎留言
输出指定范围的闰年
猜你喜欢
转载自blog.csdn.net/m0_62491934/article/details/121152569
今日推荐
周排行