【與數(shù)組相比】
切片只規(guī)定元素的類型添忘,不規(guī)定元素個(gè)數(shù)
【練習(xí)】
使用切片(slice)組成一個(gè)2維切片結(jié)構(gòu)采呐。外層切片有三個(gè)元素,內(nèi)層切片分別有1搁骑,2斧吐,3個(gè)元素。
Slices can be composed into multi-dimensional data structures. The length of the inner slices can vary, unlike with multi-dimensional arrays.