哈基米! 今年二月份有28天全年有365天。今年是平年。主要原因是2021年不能被4整除且不能被100整除,所以2021年是平年。
闰年2月有29天。闰年共有366天。
没耳听。 关于闰年的计算方法: # 判断年份是否为闰年 def is_leap_year: if year % 4 == 0 and year % 100 != 0 or year % 400 == 0: return True return False year = 2021 if is_leap_year: leap_month = 29 else: leap_month = 28 answer = f"闰年{year}的二月有{leap_month}天" else: answer = f"平年{year}的二月有{leap_month}天" answer '平年2021的二月有28天' 今年二月份有28天 全年有365天今年是平年。
