jackyshan

导航

 
# coding:utf-8
import os, re

for i in os.walk('d:'+os.sep):
    for txt in i[2]:
        try:
            txt = re.match(r'(.*)(\.txt)', txt).group(0)
            print os.path.join(i[0], txt)
        except:
            pass
posted on 2013-12-20 17:43  jackyshan  阅读(644)  评论(0编辑  收藏  举报