フィルPPT形式のコンテンツを適用します。

PPTXインポートプレゼンテーションから

PPT =プレゼンテーション(R'C:/Users/13375/Desktop/python/model.pptx ')

形状= ppt.slides [0] .shapes

#iに対する形状:
#プリント(i.text)
印刷( '\ n')
プリント(形[1] .text_frame.paragraphs [0]の.text)
プリント(形[1] .text_frame.paragraphs [1]の.text)
プリント(形[1] .text_frame.paragraphs [1] .runs [0]の.text)

形状〔1〕.text_frame.paragraphs [0] .runs [0]の.text = '更改后的新段落'
ppt.save(R'C:\ユーザー\ 13375 \デスクトップ\のpython \ change.pptx ')

おすすめ

転載: www.cnblogs.com/tomhu/p/12342988.html