problem

PPT每一页的标题

solution

  • 大纲视图好像也行?
  • python导出(需要先​​pip3 install python-pptx​​一下,以及更新pip3版本和安装lxml包)
from pptx import Presentation

file = "军事理论第1章.pptx"
ppt = Presentation(file)

for i in ppt.slides:
str = i.shapes.title
if str:
print(str.text)
else:
print('null')