📅  最后修改于: 2022-03-11 14:44:59.162000             🧑  作者: Mango
func strToIntArr(s string) []int {
strs := strings.Split(s, " ")
res := make([]int, len(strs))
for i := range res {
res[i], _ = strconv.Atoi(strs[i])
}
return res
}