xlApp = win32com.client.Dispatch(*Excel.Application*)
filename =("E:\综艺-健康养生.xlsx").decode("utf-8").encode(*gbk*)
data= xlrd.open_workbook("filename")
table = data.sheets()[0]
nrows = table.nrows
i=0
yntaxError: Non-ASCII character *\xe7* in file D:\Java\devTools\Workspace2\Loading\src\T\Test.py on line 15, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
怎么样才能读取中文名称的表名
filename =("E:\综艺-健康养生.xlsx").decode("utf-8").encode(*gbk*)
data= xlrd.open_workbook("filename")
table = data.sheets()[0]
nrows = table.nrows
i=0
yntaxError: Non-ASCII character *\xe7* in file D:\Java\devTools\Workspace2\Loading\src\T\Test.py on line 15, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
怎么样才能读取中文名称的表名
