Set和List 一样,可使用标库中的来创 Map ,如mapOf()和 mutableMapOf()等。 val map= mapOf(1 to "Kotlin", 2 to "Java", 3 to "Node") println(map) //输{1=Kotlin, ...
確定! 回上一頁