libra-gyf

判断润年

# # 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编辑  收藏  举报

导航