import os
import xlrd
import re
d="D:\\untitled2\\10月\\(原始)\\潘区\\2次\\"
file=[f for f in os.listdir(d)if os.path.isfile( os.path.join(d, f))]
pat=‘[^(](.*?)[^)]一品三笑‘
shop_name=[]
for i in range(len(file)):
shop_name.append(re.compile(pat).findall(file[i]))
print(shop_name)
xl=xlrd.open_workbook(d+file[0])
print(xl.sheet_names())