python pptx更改整个表格的字体大小

python pptx更改整个表格的字体大小,第1张

python pptx更改整个表格字体大小

表中的字体大小是逐次运行设置的。因此,您可以在添加文本时这样做,或者之后可以执行以下 *** 作:

from pptx.util import Ptdef iter_cells(table):    for row in table.rows:        for cell in row.cells: yield cellfor cell in iter_cells(table):    for paragraph in cell.text_frame.paragraphs:        for run in paragraph.runs: run.font.size = Pt(24)


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5664021.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-12-16
下一篇2022-12-16

发表评论

登录后才能评论

评论列表(0条)

    保存