简单准备一段程序,看看golang 是如何初始化一个切片的. package main import "fmt" func main() { a := make([]int, 0) a = append(a, 2, 3, 4) fmt.Println(a) }
確定! 回上一頁