#coding:utf-8 #判断下是否是闰年 import math year=raw_input("please input the year:") print year,type(year) #year=int(year) if(year%4==0 and (year % 100!=0)): print("you enter is a leap year!") elif(year%400==0): print("you enter is a leap and You entered a multiple of four hundred") else: print("you enter is not a leap year") print "over"
判断下是否是闰年
最新推荐文章于 2022-07-19 16:40:58 发布