2010-05-19 16:32:23| 分类: lang_python | 标签: |举报 |字号大中小 订阅
MYPATH = '...' # for example: os.path.dirname(os.path.abspath(__file__))
for root, dirs, files in os.walk(MYPATH):
for file in files:
filename = os.path.join(root, file)
# do sth with filename
评论