Why does my program work with a .py extension but not with a .pyw extension?

旧巷老猫 提交于 2019-12-01 17:53:41

.pyw files are run differently than .py files -- they are associated with a different interpreter, pythonw.exe instead of python.exe, which doesn't have a console associated with it.

According to some sources, including this old mailing list thread some operations don't work without a console.

Without seeing the exact script, we can't know exactly is causing the problem for pythonw.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!