,如 Windows、Linux 和 Mac OS 等。...rename_files(old_path, new_path,prefix,ext=['jpg','png','jpeg','gif','bmp','tif','tiff']):
# 判断新文件夹是否存在...rename_files(old_path, new_path,prefix,ext=['jpg','png','jpeg','gif','bmp','tif','tiff']):
# 判断新文件夹是否存在...messagebox.showerror("提示", "输入格式不符合要求")
return
# 检查输入框中的路径是否有效
if not os.path.isdir(old_path...pyinsataller filename
filename是要打包的源文件的名称
比如我要打包我写的图片批量命名的脚本打包成.exe可执行文件,可以在终端使用下面的命令:
pyinstaller study