摘要: 解构: class User(var age:Int, val name:String){ operator fun component1() = age operator fun component2() = name } fun main() { val (age, name) = User(1 阅读全文
posted @ 2021-08-31 11:27 ou尼酱~~~ 阅读(118) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/vitaviva/article/details/107587134 阅读全文
posted @ 2021-08-31 09:47 ou尼酱~~~ 阅读(86) 评论(0) 推荐(0)