python 程序打包成 exe 文件

pyinstaller  -F  XX.py  即可 但是这里会包含控制台窗口

去掉dos窗口需要在打包的时候 加上 -w 参数

  pyinstaller -F XX.py -w