import "strconv" func IsLeapYear(y string) bool { //y == 2000, 2004
//判断是否为闰年
year, _ := strconv.Atoi(y)
if year% == && year% != || year% == {
return true
} return false
}
import "strconv" func IsLeapYear(y string) bool { //y == 2000, 2004
//判断是否为闰年
year, _ := strconv.Atoi(y)
if year% == && year% != || year% == {
return true
} return false
}