快速打包python 因为经常写一些python的小脚本,然后在windows上运行,但是每次都python main.py,未免有些麻烦,所以写了一个小脚本,可以打包python成单个exe文件。 import os import shutil import glob path = input("输入您的目标程序路径:") str = "pyinstaller --onefile "+path os.system(str) print