【发布时间】:2015-05-21 17:32:45
【问题描述】:
看起来像这样:
[[1,["a", "b", "c"]], [2,["z", "x", "y"]]]
直觉上我会做类似 [][]int[]string 之类的事情,但这是无效的:syntax error: unexpected [, expecting semicolon or newline or },那我该怎么做呢?
【问题讨论】:
-
RTFM on Slice 和 Struct 和类型以及 Arrays, slices (and strings) 博客条目。
-
不要让反对票让你失望。祝你学习围棋好运。我也在学习。
标签: arrays multidimensional-array go slice