Scala进入paste模式方法

1.先win+R进入cmd命令行
2.在在命令行里输入scala,进入Scala
3.输入 : :paste
4.此时已经进入paste模式
5.CTRL+D退出并执行代码

代码实例:

scala> :paste
// Entering paste mode (ctrl-D to finish)

print("hello ")

// Exiting paste mode, now interpreting.

hello
scala>
发布了24 篇原创文章 · 获赞 11 · 访问量 3213

猜你喜欢

转载自blog.csdn.net/qq_44292472/article/details/104154973