文章标题:【金秋打卡】第21天+Python办公自动化
第一模块: 学习课程名称:Python办公自动化;章节名称(序号):4-3写入格式化配置;讲师姓名:离岛
第二模块: 课程内容(内容概述):
xlsxwriter模块使用
1.写入文本、图片、超链接等;
2.写入格式化配置;
第三模块: 最终的解决思路:
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()sheet=wb.add_worksheet() sheet.write_string() sheet.write(,,,cell_format)sheetmerge_range(,,,,,cell_format1) date=( [,,], [,,], [,,] ) sheet.write_row(,,[,,])index.item (date): sheet.write_row(index+,item) sheet.write(,,) sheet.write(,,) sheet.write_ur(,,,=) sheet.insert_image(,,) wb.close()
點擊查看更多內(nèi)容
為 TA 點贊
評論
評論
共同學(xué)習(xí),寫下你的評論
評論加載中...
作者其他優(yōu)質(zhì)文章
正在加載中
感謝您的支持,我會繼續(xù)努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進(jìn)行掃碼打賞哦