os.walk()备忘rayx2022年1月11日java files = os.walk(pathstr) for path, dirlist, filelist in files: 里面按顺序分别是路径,路径下文件夹,路径下文件.