Kotlin学习(四)之---- 常见内置函数的总结apply,with,let,also,run....
引用:varinfo:String?="Allen"funmethod1(name:String?):String{return"我是方法1"}funmethod2(name:String):Int{return2;}funmethod3(age:Int):Boolean{returntrue}一.apply函数info.apply{method1(this)}.apply{println(thi