go 的 make([]int,10), []int{},[10]int{} 直接定义的区别 2020-09-03 go4yop发表留言 make([]int,10),长度为10 ,可以通过 append 进行扩容 []int{} ,无长度限制 [10]int{} ,长度为10,不可进行扩容