python到底怎么开启多线程啊~~
compress是一个压缩图片的函数,os.wait是遍历了所有的目录和文件
teach me怎么开启多线程跑这个函数😭
originpath = r"E:\标签照片"
targetpath = r"E:\标签照片\output"
for root, dirs, files in os.walk(originpath):
for file in files:
compress(file,originpath,targetpath)