python的文件一般都是.py结尾的,那么pyw是神马东西?
pyw和py其实区别很小,主要体现在win平台上开发桌面程序,linux木有哦
python.exe 运行 .py ,用 pythonw.exe 运行 .pyw,不出现dos窗口,
住:纯图形界面程序的用户不需要看到dos窗口。
The PYW file type is primarily associated with 'Python' by Python Software Foundation.
PYW files are used in Windows to indicate a script needs to be run using PYTHONW.EXE instead of PYTHON.EXE in order to prevent a DOS console from popping up to display the output.
This patch makes it possible to import such scripts, in case they're also usable as modules.
住:开发图形界面时可以使用py,方便查看输出和差错。完成后,再改为pyw即可。