def arrayT[T: Manifest](ary: T*): Array[T] = {//接受多个参数
val arys = new Array[T](ary.length) //初始化一个数组
for (item <- 0 until ary.length)
arys(item) = ary(item)
arys
} arrayT(1, 2, 3)
def arrayT[T: Manifest](ary: T*): Array[T] = {//接受多个参数
val arys = new Array[T](ary.length) //初始化一个数组
for (item <- 0 until ary.length)
arys(item) = ary(item)
arys
} arrayT(1, 2, 3)