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>
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>