我正在使用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'
没有运气......
那里的任何人想出办法解决这个问题?