range
已收录文章:13篇
-
结构图: 为什么? var data [][]int for _, rangeSlice := range [][]int{{1}, {2}, {3}} { data = append(data, rangeSlice[:]) } fmt.Printf("%v", data) // 输出 [[1] [2] [3]] var data [][]int for _, rangeArray := range [][1]int{{1}, {2}, {3}} {182 收藏