标签:os 文件 io for file ef list print
mport os
def findExtension(path,el):
if(os.path.exists(path)):
try:
items=os.listdir(path)
for item in items:
if(os.path.isfile(os.path.join(path,item))):
print (item,el)
else:
findExtension(os.path.join(path,item),el)
except Exception,message:
print message
标签:os 文件 io for file ef list print
原文地址:http://www.cnblogs.com/mhxy13867806343/p/3874106.html