摘要: 1 # 递归列出目录里的文件 2 def print_files(path): 3 isdir, isfile, join = os.path.isdir, os.path.isfile, os.path.join 4 lsdir = os.listdir(path) 5 dirs = [i for i in lsdir if isdir(join(path, i))] 6 ... 阅读全文
posted @ 2017-12-03 09:40 依哈 阅读(127) 评论(0) 推荐(0) 编辑