fun main(arg: Array<String>) { val person = person("tom") var (name) = person//解构 println(name) // ----------------- val map = mutableMapOf<Int, String>() map.put(1, "tom") for ((key, value) in map) {//解构 print("key =$key value = $value") } } data class person(var name: String)//数据类