pptx-table

prs = Presentation('2017年北科建第一阶段满意度调研报告V.7.0汇报.pptx')


slide=prs.slides[4]
for shape in slide.shapes:
if not shape.has_table:
continue
else:
t = shape.table

p = t.cell(2, 2).text_frame.paragraphs[0]
p.clear()
run = p.add_run()
run.text = '我的数据'

font = run.font
font.name = u'隶书'
font.size = Pt(12)
font.bold = True
posted @ 2017-12-25 09:26  沧海一粒水  阅读(263)  评论(0编辑  收藏  举报