def leap_year(year):
if year%100==0 and year%4==0:
print(year,"是闰年")
return year
elif year%4==0:
print(year, "是闰年")
return year
else:
print("是闰年")
return year
print(leap_year(2020))
def leap_year(year):
if year%100==0 and year%4==0:
print(year,"是闰年")
return year
elif year%4==0:
print(year, "是闰年")
return year
else:
print("是闰年")
return year
print(leap_year(2020))