使用openpyxl
from openpyxl.workbook import Workbook
wb = Workbook()
ws = wb.active
ws.merge_cells('A1:B1')
wb.save(path_dst)
wb.close()
标签:wb,python,dst,单元格,合并,merge,close,openpyxl From: https://blog.51cto.com/u_13316945/5832335
使用openpyxl
from openpyxl.workbook import Workbook
wb = Workbook()
ws = wb.active
ws.merge_cells('A1:B1')
wb.save(path_dst)
wb.close()
标签:wb,python,dst,单元格,合并,merge,close,openpyxl From: https://blog.51cto.com/u_13316945/5832335