[英]How can I avoid redundancy when I handle default arguments to modules that may also be parsed from the command line?
[英]When running a python script from command line, PythonWin also runs. How can I avoid this?
我正在尝试从命令行(命令提示符)运行脚本。 我输入:
python.exe full_script_path.py parameters
出于某种原因,PythonWin 打开了。 我必须关闭它才能完成执行。 不幸的是,这使我无法在批处理文件中执行多次执行。
我该怎么做才能避免 PythonWin 打开?
我认为您应该启动pythonw.exe
而不是普通的python.exe
,但我现在不在 windows 盒子上,所以我无法测试它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.