📅  最后修改于: 2022-03-11 14:46:22.425000             🧑  作者: Mango
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")