摘要: import os import os.pathimport shutildef findFile(path,fileName,isHaveExtension=False): re=[] for root,dirs,files in os.walk(path): for name in files: t=name.split('.')[0] if isHaveExtension==False and t==fileName: re.append(os.path.join(root,name)) ... 阅读全文
posted @ 2014-04-03 21:50 sxcww 阅读(345) 评论(0) 推荐(0) 编辑