Go/複合數據類型/切片-slice

##切片數組 package main import ( "fmt" "math/rand" "time" ) func main() { //切片slice的建立 arr := [...]int{0,1,2,3,4,5} arr1 := []int{0,1,2,3,4,5} arr2 := make([]int,6,8) arr3 := make([]int,6) fmt.
相關文章
相關標籤/搜索