程式碼介紹:
x=int(input("請輸入年份"))
if (x%4==0)and(x%100!=0)or(x%400==0):
print(x,"is a leap year")
else :
print(x,"is not a leap year")
程式介紹:
方便人們判斷當年是否為閏年(leap year)
輸入想驗證的年份即可,電腦會幫你判斷