# # return (year % 4 == 0 and year % 100 != 0) or year % 400 == 0 # 判断是否为闰年 # def leap(n,m): # ret =[] # for i in range(n,m): # if (i % 4 ==0 and i %100 !=0) or i %400==0: # c = i # ret.append(c) # return ret # print(leap(1000,2050))
posted on 2019-12-28 10:14 libra-gyf 阅读(91) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 libra-gyf Powered by .NET 9.0 on Kubernetes