2017-08-06 58 views

回答

2

这将创建一个空数组:

let thing: [String; 0] = []; 

您也可以从阵列中获得一个切片:

let thing: &[String] = &[]; 
相关问题