这样写更好看
df = None
with contextlib.suppress(Exception):
df = read_excel("openpyxl")
df = read_excel("xlrd")
【 在 finlab 的大作中提到: 】
: try:
: df = pd.read_excel(path + '/' + fn,engine='openpyxl') #xlsx
: except:
: ...................
--
修改:hgoldfish FROM 140.224.195.*
FROM 140.224.195.*