Python使用openpyxl对xlsx表格合并单元格、设置单元格样式的操作

https://www.cnblogs.com/zeke-python-road/p/8986318.html     ————-这个非常好

 

https://blog.csdn.net/ShoneX98/article/details/85037611

https://blog.csdn.net/ShoneX98/article/details/85037611

 

from openpyxl.workbook import Workbook
 
wb = Workbook()
ws = wb.active
ws.merge_cells('A1:B1')
wb.save(path_dst)
wb.close()

 

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注