[英]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.