摘要: 、遍历目录方法 在某些时候,我们需要遍历某个目录找出特定的文件列表,可以通过os.walk方法来遍历,非常方便 import os fileList = [] rootdir = "/data" for root, subFolders, files in os.walk(rootdir): if  阅读全文
posted @ 2018-06-27 18:45 coder-2017 阅读(112) 评论(0) 推荐(0) 编辑