为此, Option 伴生对象提供了一个工厂方法,可以根据给定的参数创建相应的 Option : val absentGreeting: Option[String] = Option(null) // absentGreeting will be ...
確定! 回上一頁