from openpyxl.utils import get_column_letter, column_index_from_string # 根據列的數字返回字母 print(get_column_letter(2)) # B # 根據字母返回列的數字 print(column_index_from_string('D')) # 4 --------------------- 本文來自 憶 的CSDN 博客 ,全文地址請點擊:https://blog.csdn.net/weixin_43094965/article/details/82226263?utm_source=copy