📜  添加图像 pptx python 代码示例

📅  最后修改于: 2022-03-11 14:46:22.425000             🧑  作者: Mango

代码示例1
from pptx import Presentation
import os
 
prs = Presentation()
slide = prs.slides.add_slide(prs.slide_layouts[8])
placeholder = slide.placeholders[1]
picture = placeholder.insert_picture('001.png')
prs.save("ESEMPIO.pptx")
os.startfile("ESEMPIO.pptx")