#判断是不是闰年,python
def leap_year(year):
if year%4==0 and year%100!=0:
print(f'{year} is leap year')
elif year%400==0:
print(f'{year} is leap year')
else:
print(f'{year} is common year')
while True:
leap_year(int(input("输入年")))
response=input("y or n")
if response=='n':
break
elif response=='y':
continue
else:
print('错误')
break