isleap

calendar模块中,判断是否闰年代码 isleap

def isleap(year): """Return True for leap years, False for non-leap years.""" return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) import cal ......
闰年 模块 calendar 代码 isleap
共1篇  :1/1页 首页上一页1下一页尾页