# 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
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