python-pptx 学习笔记 placeholder、Text

摘要: placeholder API #1.访问placeholder #通过idx访问 prs = Presentation() slide = prs.slides.add_slide(prs.slide_layouts[8]) #获得idx,遍历 for shape in slide.placeho 阅读全文
posted @ 2022-05-26 14:49 朝朝暮Mu 阅读(1171) 评论(0) 推荐(0)

python-pptx 学习笔记 Shapes

摘要: Shapes API Auto Shapes from pptx.enum.shapes import MSO_SHAPE #1.添加一个图形 shapes = slide.shapes left = top = width = height = Inches(1.0) shape = shapes 阅读全文
posted @ 2022-05-26 11:12 朝朝暮Mu 阅读(723) 评论(0) 推荐(0)

python-pptx 学习笔记 Presentation 和 Slides

摘要: Presentation API from pptx import Presentation #1.新建ppt prs = Presentation() #2.打开ppt prs = Presentation('file-path') #3.保存ppt prs.save('test.pptx') S 阅读全文
posted @ 2022-05-26 10:44 朝朝暮Mu 阅读(485) 评论(0) 推荐(0)

python python-pptx学习笔记

摘要: python-pptx学习笔记 参考:https://blog.csdn.net/weixin_42750611/article/details/108029796 官方文档:https://python-pptx.readthedocs.io/en/latest/ 阅读全文
posted @ 2022-05-26 09:06 朝朝暮Mu 阅读(62) 评论(0) 推荐(0)

python WindPy 学习笔记

摘要: WindPy 学习笔记 #1.连接wind from WindPy import w w.start() #2.获取日时间序列函数 WSD #wsd可以支持取 多品种单指标 或者 单品种多指标 的时间序列数据 w.wsd(codes, fields, beginTime, endTime, opti 阅读全文
posted @ 2022-05-25 14:45 朝朝暮Mu 阅读(2791) 评论(0) 推荐(0)

seaborn学习笔记

摘要: seaborn学习笔记 参考:https://seaborn.pydata.org/tutorial.html 官网:http://seaborn.pydata.org/ github: https://github.com/mwaskom/seaborn-data 1. 导入示例数据方法 参考:h 阅读全文
posted @ 2022-05-24 14:57 朝朝暮Mu 阅读(40) 评论(0) 推荐(0)

python docx API 之 Table

摘要: Table API 参考:https://python-docx.readthedocs.io/en/latest/api/table.html 1. Table对象 #1.创建table document.add_table() #2.在右侧新增列 add_column(width) #3.在底部 阅读全文
posted @ 2022-05-24 14:36 朝朝暮Mu 阅读(683) 评论(0) 推荐(0)

python docx API之 Text

摘要: Text API Paragraph API 参考:https://python-docx.readthedocs.io/en/latest/api/text.html #1.添加文本块 #text中可以包括特殊符号 #tab:/t; #newline:/n; #return:/r; add_run 阅读全文
posted @ 2022-05-24 14:10 朝朝暮Mu 阅读(96) 评论(0) 推荐(0)

python docx API 之 Document

摘要: Document API 参考:https://python-docx.readthedocs.io/en/latest/api/document.html #1.构造函数,返回Document对象 document = Document(docx=None) #2.添加标题 add_heading 阅读全文
posted @ 2022-05-24 13:34 朝朝暮Mu 阅读(672) 评论(0) 推荐(0)

python docx学习笔记 页眉和页脚 Headers Footers

摘要: header 访问header #1.访问header header = section.header #2.设置是否同上一节相同 header.is_linked_to_previous=True #3.新增header,此时is_linked_to_previous属性自动改为False par 阅读全文
posted @ 2022-05-23 17:56 朝朝暮Mu 阅读(192) 评论(0) 推荐(0)