天宫鹤

2024年5月31日

Python-pptx正确设置中文字体

摘要: 使用pptx_ea_font库设置中文字体: 1.安装pptx_ea_font库:pip install pptx-ea-font 2.p = text_frame.paragraphs[0] # 取文本段落 run = p.runs[0] # 取文本运行对象,该对象为段落的子元素 pptx_ea_ 阅读全文

posted @ 2024-05-31 20:03 GoGrid 阅读(68) 评论(0) 推荐(0) 编辑

导航