如果想使用可變集,必須明確地導入scala.collection.mutable.Map類。 ... object Test { def main(args: Array[String]) { val colors = Map("red" -> "#FF0000", ...
確定! 回上一頁