For example: scala> val cityPop = ("Dublin", 2) cityPop: (String, Int) = (Dublin,2) scala> cityPop._1 res3: String = Dublin scala> cityPop.
確定! 回上一頁