python生成windows程序 发表于 2008-12-12 更新于 2026-03-03 分类于 技术分享 首先安装pyinstaller: 1pip install pyinstaller 只需要一条命令搞定: 1python pyinstaller.py --console --onefile --icon="1.ico" -w 1.py