#coding=utf-8 import os #(dirpath, dirnames, filenames)[文件夹路径, 文件夹名字, 文件名] def file_name(file_dir): for root, dirs, files in os.walk(file_dir): for name in files: print(os.path.join(root,name)) for name in dirs: print(os.path.join(root, name)) #print…