如上所述, [] 运算符代表调用成员函数 get() 与 set() 。 Kotlin 中数组是不型变的(invariant)。这意味着Kotlin 不让我们把 Array<String> 赋值给 ...
確定! 回上一頁