scala console 用:paste 多行输入

scala> :paste
// Entering paste mode (ctrl-D to finish)
if (true)
    print("that was true")
else
    print("false")
[Ctrl-D]

// Exiting paste mode, now interpreting.
that was true
关注公众号 海量干货等你
原文地址:https://www.cnblogs.com/sowhat1412/p/12734180.html