【发布时间】:2010-12-22 17:18:52
【问题描述】:
在 Matlab 中研究编程多年后,我怀念通过交互式控制台暂停程序并检查变量、绘图、保存/修改数据等,然后继续执行的方式。
有没有办法在 python 中做同样的事情?
例如:
# ... python code ...
RunInterpreter
# Interactive console is displayed, so user can inspect local/global variables
# User types CTRL-D to exit, and script then continues to run
# ... more python code ...
这将使调试更容易。非常感谢您的建议,谢谢!
【问题讨论】:
标签: python console debugging interpreter