使用wing IDE时如何为python设置运行参数? [英] how to set run arguments for python when using wing IDE?

查看:59
本文介绍了使用wing IDE时如何为python设置运行参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在使用 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,但是 modelsmanage.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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆