标签:put bsp format class 输入 一个 nbsp for mat
if (year % 4) == 0:
if (year % 100) == 0:
if (year % 400) == 0:
print("{0} 是闰年".format(year)) # 整百年能被400整除的是闰年
else:
print("{0} 不是闰年".format(year))
else:
print("{0} 是闰年".format(year)) # 非整百年能被4整除的为闰年
else:
print("{0} 不是闰年".format(year))
标签:put bsp format class 输入 一个 nbsp for mat
原文地址:https://www.cnblogs.com/w521w/p/9005887.html