在这里插入代码
import os
import re
resultList = []
def getName(path, templat_path):
for path1 in os.listdir(path):
if re.match("export_[\s\S]*.xls", path1): #正则匹配
resultList.append(path1)
return resultList
path = "" #写入路径
resultList = getName(path, "")