来看这三种不同的写法
object strreplace {
def main(args: Array[String]): Unit = {
val loop = 50000000;
{
val start = System.currentTimeMillis()
for (i <- 0 to loop) {
val a = ("123456".replace("2", "00").replace("3", …… 阅读全文
scala 多字符替换效率
Reply