1、安装pywin32
pip install pywin32
2、安装Pyinstaller
pip install PyInstaller
#编译.Cmd
cd /d %~dp0
pyinstaller -F -w PythonApplication1.py
echo 按任意键退出 & pause
exit