0
我想從Excel中使用xlwings調用python代碼。工作簿的名稱是「wingsTest」。如果我叫第一行代碼是wb = Workbook("wingsTest")
它運行良好,但是當我wb = Workbook.caller()
收到以下錯誤:xlwings unicode錯誤,當從Excel使用Workbook.caller()調用
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\rbn\Documents\PythonScripts\apnlookupXL.py", line 74, in main
wb = Workbook.caller()
File "F:\Anaconda3\lib\site-packages\xlwings\main.py", line 182, in caller
xl_workbook = xlplatform.get_xl_workbook_from_xl(fullname)
File "F:\Anaconda3\lib\site-packages\xlwings\_xlwindows.py", line 429, in get_xl_workbook_from_xl
if not is_file_open(unicode(fullname)):
NameError: name 'unicode' is not defined
Thnks的任何幫助。
非常感謝。 –