defyear(y)Ify%100=0andy%400=0:Print"y,是閏年"Elify%100!=0andy%4=0:Print"y,"是閏年"Else:Print"y,"不是閏年"Returnyear(raw_input("請輸入年份:")。
defyear(y)
Ify%100=0andy%400=0:
Print"y,是閏年"
Elify%100!=0andy%4=0:
Print"y,"是閏年"
Else:
Print"y,"不是閏年"
Return
year(raw_input("請輸入年份:")。