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>