除了构造器,Java 里常常配合一起使用的init 代码块,在Kotlin 里的写法也有了 ... val strs: Array<String> = arrayOf("a", "b", "c") val anys: ...
確定! 回上一頁