python按正则方式搜索文件

import os,os.path,re def searchFile(pathname,filename):#参数1要搜索的路径,参数2要搜索的文件名,能够是正则表代式 matchedFile =[] for root,dirs,files in os.walk(pathname): for file in files:
相关文章
相关标签/搜索