读取ppt
from pptx import Presentation
prs=Presentation('名字.pptx')
SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。for slide in prs.slides: # 读取每一页幻灯片
for shape in slide.shapes: #获取每一页的内容
if shape.has_text_frame: #判断是否有文本框架
text_frame=shape.text_frame
for paragraph in text_frame.paragraphs:
print(paragraph.text) #打印每一段的内容
更多精彩