python 获取子目录下的所有文件的路径
import os pathss=[] for root, dirs, files in os.walk(tarpath): path = [os.path.join(root, name) for name in files] #print(path) pathss.extend(path)
每天扫一扫,到店付款省钱!
动动小手支持一下作者,谢谢🙏
import os pathss=[] for root, dirs, files in os.walk(tarpath): path = [os.path.join(root, name) for name in files] #print(path) pathss.extend(path)
动动小手支持一下作者,谢谢🙏