您的位置:首页技术文章
文章详情页

python - xlsxwriter合并单元格和图表格式

浏览:77日期:2022-06-30 17:35:03

问题描述

1、怎么合并同一行的单元格,并且使文字居中

2、怎么设置折线图的背景颜色

问题解答

回答1:

yellow=wbk.add_format({’border’:1,’align’:’center’,’bg_color’:’C0504D’,’font_size’:12,’font_color’:’white’})sheet.merge_range(0,0,0,10,data,yellow)

标签: Python 编程
相关文章: