)
参数分别是:
rows 表格行数
cols 表格列数
left 左边距
top 上边距
width 表格宽度
height 表格高度
返回值类型是:pptx.shapes.graphfrm.GraphicFrame...上边距、宽度、高度
table = insert_table(slide, 3, 3, 3, 5, 13.6, 5)
2-1 如何重新设置表的行高、列宽?...上边距width 图片显示宽度height 图片显示高度
def insert_image(slide, pic_path, left, top, width=None, height=None...top 上边距
width 视频显示宽度
height 视频显示高度
poster_frame_image 视频封面图路径
4-1 获取视频宽高比
为了保证视频在 PPT 中显示完全,我们需要先获取视频的宽...上边距、显示宽度,即可以完成视频的插入动作
def insert_video(self):
"""
插入视频
:return:
"""
slide = add_slide