apple2016
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 

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2021-11-12
  • 2022-12-23
  • 2021-05-30
  • 2021-11-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
  • 2022-12-23
  • 2021-11-12
  • 2022-03-06
相关资源
相似解决方案