Joo*_*wan 5 python eclipse pydev wing-ide interactive-shell
我一直在使用Wing IDE进行python编程,我正在尝试切换到Eclipse,PyDev.
当我在Wing IDE中运行我的代码时,在完成执行后,控制台会立即回到交互式shell,我可以继续测试,但我不知道如何在Eclipse中执行此操作.我不确定我是否正确描述了我的问题,所以我将使用一个例子:
假设我有一个看起来像这样的简单源代码(例如test.py):
print("hello")
Run Code Online (Sandbox Code Playgroud)
当我通过单击绿色箭头在Wing IDE中运行它时,控制台在执行后将如下所示:
Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)]
Type "help", "copyright", "credits" or "license" for more information.
[evaluate untitled-1.py]
hello
>>>>
Run Code Online (Sandbox Code Playgroud)
我可以继续在shell上做任何事情,它会知道我的代码(定义函数等).但是当我在Eclipse中做同样的事情时,控制台看起来就像这样:
hello
Run Code Online (Sandbox Code Playgroud)
然后我必须单击"删除所有已终止的启动"按钮返回到shell.
这可以在Eclipse中完成吗?
| 归档时间: |
|
| 查看次数: |
14738 次 |
| 最近记录: |