查找文件夹下的所有子文件 import os allfile=[] def dirlist(path): filelist=os.listdir(path) #fpath=os.getcwd() for filename in filelist: # allfile.append(fpath+'/'+filename) filepath=os.path.join(path,filename) if os.path.isdir(filepath): dirlist(filepath) else:…