(self.presentation, 6)
# 2.插入一个表格
# 参数分别为:幻灯片对象、行数、列数、左边距、上边距、宽度、高度
table = insert_table(slide, 3, 3..., 3, 5, 13.6, 5)
2-1 如何重新设置表的行高、列宽?...为了生成表格的美观性,对表的行高、列宽进行调整很有必要
其中,表格对象的 columns、rows 属性分别用于获取所有的列对象、行对象
def set_table_column_width(table..., column_index, width, unit=Cm):
"""
设置表格某一列的宽度
:param table:
:param column_index:...= table.cell(0,0)
接着,指定单元格对象的 text 属性值为指定的内容即可
# 设置单元格的值
cell.text = "单元格显示的内容"
这样,我们定义一组数据,就可以按照插入到表格中了