#-*- coding:utf-8 -*- try: year = int(raw_input('请输入年份(如2008): ')) except: print '请输入正确的年份' exit() is_leap = False if year % 100 == 0 and year % 400 == 0: is_leap = True elif year % 100 != 0 and year % 4 == 0: is_leap = True if is_leap: print '%d年是闰年!' % year else: print '%d年不是闰年!' % year
Copyright 2014-2023 //m.sbmmt.com/ All Rights Reserved | 苏州跃动光标网络科技有限公司 | 苏ICP备2020058653号-1
| 本站CDN由 数掘科技 提供