Option的解释: Represents optional values. Instances of Option are either an instance of scala.Some or the object None. Option[A] (sealed trait) 有两个取值: 1. Some[A] 有类型A的值 2. None 没有值 Option一般有两种用法: 1. 模式匹配 Option[A] option option match { case
Represents optional values. Instances of Option are either an instance of scala.Some or the object None.Option类代表可选的值.Option的实例要么是Some的实例,要么是None的实例. The most idiomatic way to use an scala.Option instance is to treat it as a collection or monad and u