【发布时间】:2014-12-15 23:03:38
【问题描述】:
我正在使用 https://python-docx.readthedocs.org/en/latest/ 构建一个自动报告程序
我正在尝试使图片居中,甚至尝试了我在谷歌某处读到的这个技巧:
document.add_picture('C:\Users\Public\Pictures\Picture.jpg',height=Inches(3.44))
last_paragraph = document.paragraphs[-1]
last_paragraph.style = 'centerstyle'
没有运气......
有人想出办法解决这个问题吗?
【问题讨论】: