%d .%year. (e.g.2008)都代表什么?
year=int(raw_input("please inout the year(e.g.2008):"))
if (year%100==0 and year%400==0) or (year%100!=0 and year%4==0)):
print "%d is leap year"%year
else:
print "%d is not leap year"%year
year=int(raw_input("please inout the year(e.g.2008):"))
if (year%100==0 and year%400==0) or (year%100!=0 and year%4==0)):
print "%d is leap year"%year
else:
print "%d is not leap year"%year
2017-05-24
举报