使用wing IDE时如何为python设置运行参数? [英] how to set run arguments for python when using wing IDE?
问题描述
如何在使用 wing IDE 时为 python 设置运行参数?
how to set run arguments for python when using wing IDE?
D:\TEST\djgprj
├─.idea
├─testdjgprj.wpr
├─testdjgprj.wpu
└─testdjg
├─.idea
├─testdjg
├─manage.py
├─static
└─templates
我使用 wingIDE 创建了一个项目,并保存到文件夹 D:\TEST\djgprj
,但是 models
、manage.py
、程序位于 D:\TEST\djgprj\testdjg
文件夹中.当我尝试使用 wingIDE 运行 manage.py 时,我不知道在哪里设置参数.我知道有一个地方是 Debug->Run Arguments
,但效果不佳.
I create a project using wingIDE, and save to folder D:\TEST\djgprj
, but the models
, manage.py
, programs are in folder D:\TEST\djgprj\testdjg
.
When I try to run manage.py using wingIDE, I dont know where to set arguments. I know there is one place which is Debug->Run Arguments
, but it does not work well.
推荐答案
右键单击文件(在编辑器或项目工具中)并选择属性"并在调试">运行参数"下设置运行参数.
Right click on the file (either in editor or Project tool) and select Properties and set the run args under Debug > Run Arguments.
如果您的意思是向 Python 本身而不是您的代码发送参数,则这是 Debug > Python Options 属性(对于无缓冲输出,默认值为 -u).
If you mean sending arguments to Python itself and not your code, this is the Debug > Python Options property instead (the default is -u for unbuffered output).
这篇关于使用wing IDE时如何为python设置运行参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!