module ‘xlrd’ has no attribute ‘open_wordbook’
只是一个低级错误,xlrd本来就没有这个模块,是因为拼写错误导致的;
xlrd.open_workbook(filename) 是 open_workbook 而不是 open_wordbook
openpyxl 有一个对应模块是 load_wordbook
所以切记要注意写作规模;
有很多提示 是 自己新建了xlrd.py 文件,这个也可能是我们常见犯错的地方;
module ‘xlrd’ has no attribute ‘open_wordbook’
只是一个低级错误,xlrd本来就没有这个模块,是因为拼写错误导致的;
xlrd.open_workbook(filename) 是 open_workbook 而不是 open_wordbook
openpyxl 有一个对应模块是 load_wordbook
所以切记要注意写作规模;
有很多提示 是 自己新建了xlrd.py 文件,这个也可能是我们常见犯错的地方;