Sina Weibo:小锋子Shawn
Tencent E-mail:403568338@qq.com
http://blog.csdn.net/dgyuanshaofeng/article/details/78766524
1、Python2的文档os.walk
2、下面是文档的翻译和理解:
作用:利用top-down或者bottom-up方法遍历目录树(directory tree),生成文件名字。针对树中的每一目录,输出一个3元组(dirpath, dirnames, filenames)。