>>>from openpyxl.utils import get_column_letter,column_index_from string
>>>get_column_letter(2)
B
>>>column_index_from_string(‘B‘)
2
openpyxl对excel实现字母与数字之间的转换
原文:https://www.cnblogs.com/energetic/p/13038806.html