判断给的年是否是闰年!
#!/usr/bin/env python ye = int(raw_input('Please enter the year:')) if ye % 100 == 0: if (ye/100) % 4 == 0: print "your inputing is a leap year!" else: print "your inputing is not a leap year!" elif ye % 4 == 0: print "your inputing is a leap year!" else: print "your inputing is not a leap year!"