- 博客(1)
- 收藏
- 关注
转载 python计算闰年
以下题目请在python3下操作方式1:year = int(input("输入一个年份: "))if (year % 4) == 0: if (year % 100) == 0: if (year % 400) == 0: print("{0} 是闰年".format(year)) # 整百年能被400整除的是闰年 else: ...
2018-05-03 23:21:02 9934
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人