该功能
get_column_letter已在Openpyxl 2.4版中从
openpyxl.cell移到
openpyxl.utils。
当前导入为:
from openpyxl.utils import get_column_letter
如果您不希望最终用户使用哪个版本,可以使用以下代码:
try: from openpyxl.cell import get_column_letterexcept importError: from openpyxl.utils import get_column_letter



