标签:style seq == lis scala metro ring str list
def Parametron(strings:String*): Unit ={ strings.foreach(x=>{ println(x) if (x=="88") println(s"********** ${x.toInt}************") }) }
val s4=Parametron("soyo soyo1", "xiaozhou","xiaohang","soyo5","88")
val list=List("小海","小周","小华") //List Array Seq 都ok val s5=Parametron(list:_*)
标签:style seq == lis scala metro ring str list
原文地址:http://www.cnblogs.com/soyo/p/7725802.html