隐式类 可以通过一个隐式函数将一种类型转变为另一种类型 其他类可以引入隐式包 不引入则报错 引入后不报错 传值 优先级 方法传值 隐式传值 默认值 可以通过一个隐式函数将一种类型转变为另一种类型 object Implicit { def main(args: Array[String]): Unit = { } implicit def stringToInt(value:String):Int = Integer.parseInt(value) implicit def stringToInt(value:Int):String = value.toString val a: