for( item <- Array(List(1,2),List(0,2,3),List(2,3,3,3,3),List(3),List())){val res= item match {case List(a,b) => a+"two"+b; // a b: 各代表一个元素case List(x,_*) => "one2"; // _* : 代表 可以有 0 - n 个 任意类型的元素case List(_) => "one"; // 字母 或 _ :代表 一个 任意类型的元素case _ => "no"}}
option match {case Some(x) => (x._1, x._2, x._3, x._4, x._5)case None => (0, 0L, 0D, 0L, 0L)}
option match {case Some(x) => xcase None => (0, 0L, 0D, 0L, 0L)}
