编程中公历闰年的简单计算方法:
设年份 year
if (year能被4整除 and 不能被100整除) or year能被400整除
then 该年为闰年
else 该年为平年
设年份 year
if (year能被4整除 and 不能被100整除) or year能被400整除
then 该年为闰年
else 该年为平年
本文介绍了一种简单的公历闰年判断方法:如果年份能被4整除但不能被100整除,或者能被400整除,则为闰年。此规则适用于编程中的日期处理。
2108
721

被折叠的 条评论
为什么被折叠?
