bool IsLeapYear(int year) { return (year % 4 == 0) && (year % 100 != 0) || (year % 400 == 0); } year的值 是闰年返回真, 不是闰年返回假。