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 myscript.py
进入交互模式后,您可以检查脚本中的状态和对象。scala 和 REPL 是否有类似的功能?
scala -i myscript.scala应该做的伎俩。
scala -i myscript.scala