0.安装模块 window: pip install python-pptx mac:pip3 install python-pptx 1.PPT结构 slide 幻灯片页 shape 形状 paragraph 段落 run 文字块 2.获取slide .slides 得到一个列表,包含每个列表slide from pptx import Presentation ppt = Presentation(1.pptx) for slide in ppt.slides: print(slide) 2.获取形状 slide.shapes 形状 from pptx import Prese