文章标题:【金秋打卡】第22天+Python办公自动化
第一模块: 学习课程名称:Python办公自动化;章节名称(序号):4-3写入图表到Excel;讲师姓名:离岛
第二模块: 课程内容(内容概述):
xlsxwriter模块使用
1.写入文本、图片、超链接等;
2.写入格式化配置;
3.写入图表
第三模块: 最终的解决思路:
xlsxwriter wb=xlsxwriter.workbook(date.xlsx) cell_format=wb.add_format(:Ture)cell_format1=wb.add_format()cell_format1.set_bold()cell_format1.set_font_color()cell_format1.set_font_size()cell_format1.set_align()cell_format2=wb.add_format()cell_format2.set_bold()cell_format2.set_bg_color()sheet=wb.add_worksheet() sheet.write_string() sheet.write(,,,cell_format)sheetmerge_range(,,,,,cell_format1) date=( [,,], [,,], [,,] ) sheet.write_row(,,[,,]cell_format2])index.item (date): sheet.write_row(index+,item) sheet.write(,,) sheet.write(,,) sheet.write_ur(,,,=) sheet.insert_image(,,) wb.close() char=wb.add_chart({:})chart.set_title(:) chart.set_x_axis(:) chart.set_y_axis(:) chart.add_series({ :, :, :[,,,,] }) chart.add_series({ :, :, :[,,,,], :{:} }) sheet.insert_chart(,chart) wb.close()
點(diǎn)擊查看更多內(nèi)容
1人點(diǎn)贊
評(píng)論
評(píng)論
共同學(xué)習(xí),寫(xiě)下你的評(píng)論
評(píng)論加載中...
作者其他優(yōu)質(zhì)文章
正在加載中
感謝您的支持,我會(huì)繼續(xù)努力的~
掃碼打賞,你說(shuō)多少就多少
贊賞金額會(huì)直接到老師賬戶(hù)
支付方式
打開(kāi)微信掃一掃,即可進(jìn)行掃碼打賞哦
今天注冊(cè)有機(jī)會(huì)得
100積分直接送
付費(fèi)專(zhuān)欄免費(fèi)學(xué)
大額優(yōu)惠券免費(fèi)領(lǐng)