使用指定的大小和 init 函数声明数组构造函数。 init 函数用于返回带有索引的数组元素。 Array(size: Int, init: (Int) -> T). 可以使用 arrayOf() , intArrayOf() ...
確定! 回上一頁