energetic

from   pptx  import  Presentation

prs=Presentation(\'名字.pptx\')

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)    #打印每一段的内容

    

分类:

技术点:

相关文章:

  • 2022-02-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
猜你喜欢
  • 2022-12-23
  • 2021-07-02
  • 2021-12-04
  • 2022-02-28
  • 2022-02-28
  • 2022-12-23
  • 2021-11-06
相关资源
相似解决方案