小工具的代码
作者:互联网
def get_all_filenames(files_path): list = [] # base = r'C:\Users\Fan\PycharmProjects\pythonProject2\数据\花牛' # def findAllFile(base): for root, ds, fs in os.walk(files_path): for f in fs: fullname = os.path.join(root, f) list.append(fullname) # 将每一次获取到的数据存放到总的列表中 print("已拿到所有客户标注的文件路径") return list
pip install <库名> -i https://pypi.tuna.tsinghua.edu.cn/simple
标签:files,fs,代码,list,base,path,工具,os 来源: https://www.cnblogs.com/caesarone/p/16494069.html