openpyxl的问题
为什么我按照书上写进来还是错了,书上的openpyxl是2.1.4版,我的是最新版>>> import openpyxl
>>> from openpyxl.cell import get_column_letter,column_index_from_string
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
from openpyxl.cell import get_column_letter,column_index_from_string
ImportError: cannot import name 'get_column_letter' from 'openpyxl.cell' (C:\Users\Owner\AppData\Local\Programs\Python\Python38\lib\site-packages\openpyxl\cell\__init__.py)
解决:https://stackoverflow.com/questions/36721232/importerror-cannot-import-name-get-column-letter
ps: 90%的书都是过时的;只会看书,还不会查文档,不会搜索,那你的学习将举步维艰……
页:
[1]