【发布时间】:2016-06-23 05:03:39
【问题描述】:
如果我们在 Python 中运行带有-i 标志的程序,程序会被执行,并且在执行脚本后我们会进入交互模式。 (可进一步用于调试)。
例如:python -i exampleProgram.py.
在 Octave 中是否有类似的方法可以做到这一点?
【问题讨论】:
如果我们在 Python 中运行带有-i 标志的程序,程序会被执行,并且在执行脚本后我们会进入交互模式。 (可进一步用于调试)。
例如:python -i exampleProgram.py.
在 Octave 中是否有类似的方法可以做到这一点?
【问题讨论】:
你要找的是
--persist Go interactive after --eval or reading from FILE.
查看octave --help查看完整列表
【讨论】:
Here 是 Octave 的命令行参数列表。你会看到它确实支持
--交互式
-我
强制交互行为。这对于通过 远程 shell 命令或在 Emacs shell 缓冲区内。为了 在 Emacs 中运行 Octave 的另一种方式,请参阅 Emacs Octave 支持。
【讨论】: