9-2 String

重复

scala> "hello" * 5
res20: String = hellohellohellohellohello

 切分

scala> "hello jihao  ni    shijie en".split(" +")
res108: Array[String] = Array(hello, jihao, ni, shijie, en)
渐变 --> 突变
原文地址:https://www.cnblogs.com/lybpy/p/9741145.html