def leap_year(year,month,day):
if month==2 and day==28:
#月和日刚好是2月28日直接就是闰年
return True
elif (year%4==0 and year%100 != 0) or year%400==0:
# 普通年能被4整除且不能被100整除的为闰年。
# 世纪年能被400整除的就是闰年。
      return True
else:
return False

leap_year(year,month,day)