Python判断是否是闰年

来源:互联网 发布:千牛mac版使用 编辑:程序博客网 时间:2024/04/28 18:18
# -*- coding: utf-8 -*-i=1950while i<2017:    if ((i%4==0 and i%100!=0)or (i%400==0)):        print i,"是闰年"    i+=1
原创粉丝点击