更新时间:

#golang 数组 切片

golang 数组 切片 数组 定义h时指定大小,就是属于数组 数组: s := [6]int{1, 2, 3, 4, 5, 6}
切片: arr := make([]int, 6) 切片: s := []int{1, 2, 3, 4, 5, 6}