Run ID:132441
提交时间:2025-10-08 11:33:41
def is_leap_year(year): if (year % 4 == 0 and year % 100 != 0) or (year % 400 == 0): return True return False # 测试 years = [2000, 2004, 1900, 2001] for year in years: if is_leap_year(year): print(f"{year} 是闰年") else: print(f"{year} 不是闰年")