python 学习心得-1
第一次学习编程,用python编写了我的第一个小程序,分享一下!
year = input("x = ")
if(year % 4 == 0 and year % 100 != 0 or year % 400 == 0):
print "year is leap year!"
else:
print "year is not leap year!"
第一次学习编程,用python编写了我的第一个小程序,分享一下!
year = input("x = ")
if(year % 4 == 0 and year % 100 != 0 or year % 400 == 0):
print "year is leap year!"
else:
print "year is not leap year!"