Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Python 有一个选项可以在执行脚本后进入交互模式:
$ python -i util.py >>>
我发现这篇文章groovy 等同于“python -i”?但似乎对 groovysh 2.3.0 没有任何作用。有没有办法做到这一点?
您是否只需要使用一个命令来执行此操作?如果没有,请先尝试执行 groovysh:
$ groovysh
然后在 groovysh 中:
groovy:000> :load your_script.groovy