Python OS 目录遍历(迭代+os.walk())

#-*- coding:utf-8 –*- import os def dirList(path): filelist = os.listdir(path) allfiled = [] for filename in filelist: filepath = os.path.join(path, filename) if os.path.
相关文章
相关标签/搜索