操作模板.pptx')
# 获取需要添加文字的页面对象
slide = ppt.slides[0]
# 设置添加文字框的位置以及大小
left, top, width, height = Cm(16.9...left, top=top, width=width, height=height)
设置文本框背景
# 调整文本框背景颜色
textBoxFill = textBox.fill
textBoxFill.solid...“指定文本在文本框架中的垂直对齐方式。...[n_page]
# 设置表格位置和大小
left, top, width, height = Cm(6), Cm(12), Cm(13.6), Cm(5)
# 表格行列数,和大小
shape = slide.shapes.add_table...(image_file=img_name,left=left,top=top,width=width,height=height)
# 保存ppt
ppt.save('6.python-pptx 插入图片