此方法是用的插件 pyinstaller下载地址 http://www.pyinstaller.org/要安装 pywin32 附件里有,执行命令 pyinstaller hello.py -y在 dist路径下就能找到相应的exe源码都在附件里