from openpyxl import load_workbook
from openpyxl.utils import get_column_letter  #通过阿拉伯数组转换成 如:A,B,AF 使用方法 get_column_letter(2361)
def  read_case():
    wb=load_workbook('test_case.xlsx')
    ws = wb.active
    ws.title = "22222" #修改第一个的名称
    ws2 = wb.create_sheet(title="11111111") #添加一个
    ws2.append([1,2,3,4,5,6,7])
    wb.save('test_case.xlsx')
read_case()

相关文章:

  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2018-09-04
  • 2021-07-26
  • 2022-01-25
  • 2021-06-10
  • 2021-08-09
猜你喜欢
  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-14
  • 2021-10-18
相关资源
相似解决方案