scala合并Array时间:2023-03-08 17:41:05 val newarray = Array(1,2,3)++Array(4,5) newarray.foreach(println) 打印结果: 1 2 3 4 5