python读取excel表格异常
python读取excel表格错误
Traceback (most recent call last):
File "C:/Users/hp/Desktop/20100109/xlrd.py", line 3, in <module>
import xlrd
File "C:/Users/hp/Desktop/20100109\xlrd.py", line 4, in <module>
from xlrd import open_workbook
ImportError: cannot import name open_workbook
我明明已经装上xlrd了,怎么无法导入呢,另外打开excel文件的时候可以用绝对路径吗?我弄得绝对路径好像不对
------解决方案--------------------
我只能说,你如果是用的第3方的IDE,记得把python的包重新导入下
Traceback (most recent call last):
File "C:/Users/hp/Desktop/20100109/xlrd.py", line 3, in <module>
import xlrd
File "C:/Users/hp/Desktop/20100109\xlrd.py", line 4, in <module>
from xlrd import open_workbook
ImportError: cannot import name open_workbook
我明明已经装上xlrd了,怎么无法导入呢,另外打开excel文件的时候可以用绝对路径吗?我弄得绝对路径好像不对
------解决方案--------------------
我只能说,你如果是用的第3方的IDE,记得把python的包重新导入下