方法一:根据逻辑判断year = int(input("请输入一个年份:"))if year%4==0 and year%400==0: print('闰年')elif year%4==0 and year%100!
確定! 回上一頁