闰年条件总是记不住?
Python内置库calendar帮你解决!
import calendar
x = int(input())
if calendar.isleap(x):
print("yes")
else:
print("no")
再也不用担心忘记闰年的判断条件了
闰年条件总是记不住?
Python内置库calendar帮你解决!
import calendar
x = int(input())
if calendar.isleap(x):
print("yes")
else:
print("no")
再也不用担心忘记闰年的判断条件了