python3
python2
temp=input('please write down a year:')
year=int(temp)
# if isinstance(year\4,int) and isinstance(year\100,float)\or isinstance(year\400,int): # 除号写错, or 前面不用 \
# if isinstance(year/4,int) or (isinstance(year/100,float) and isinstance(year/400,int)): # bu ke kao
if year%4 == 0 or (year%100 != 0 and year%400 == 0): #这个是 常规的判断方式
print('leap year')
else:
print('not leap year')