我想使用 PyExcel 打开一个简单的 excel 文件,这是我的代码
>>import os
>>import pyexcel as pe
>>print('Directory Path=', os.getcwd())
Directory Path= C:\Users\Contacts\My experimentation
>>sheet = pe.get_sheet(file_name="C:/Users/Contacts/My experimentation/Mylist.xlsx")
这是我的 Excel 文件的名称。这是我得到的错误
Directory Path= C:\Users\Contacts\My experimentation
Traceback (most recent call last):
File "C:/Users/Contacts/My experimentation/abc.py", line 5, in <module>
sheet = pe.get_sheet(file_name="C:/Users/Contacts/My experimentation/Mylist.xlsx")
File "C:\Users\AppData\Local\Programs\Python\Python35\lib\site-packages\pyexcel\core.py", line 36, in get_sheet
named_content = sources.get_sheet_stream(**keywords)
File "C:\Users\AppData\Local\Programs\Python\Python35\lib\site-packages\pyexcel\internal\core.py", line 20, in get_sheet_stream
sheets = a_source.get_data()
谁能告诉我我做错了什么?谢谢!