二维数组
声明方式
var arr1 [2][3]int = [2][3]int{{1, 2, 3}, {4, 5, 6}}
var arr2 [2][3]int = [...][3]int{{1, 2, 3}, {4, 5, 6}}
var arr3 = [2][3]int{{1, 2, 3}, {4, 5, 6}}
var arr4 = [...][3]int{{1, 2, 3}, {4, 5, 6}}
声明方式
var arr1 [2][3]int = [2][3]int{{1, 2, 3}, {4, 5, 6}}
var arr2 [2][3]int = [...][3]int{{1, 2, 3}, {4, 5, 6}}
var arr3 = [2][3]int{{1, 2, 3}, {4, 5, 6}}
var arr4 = [...][3]int{{1, 2, 3}, {4, 5, 6}}