3
缩进似乎非常简单,终端打印正确的缩进,但相同的缩进不会反映在我保存的Word docx中。我在这里做错了什么?如何正确缩进python-docx?
from docx import Document
from docx.shared import Inches
worddoc = Document()
paragraph = worddoc.add_paragraph('Left Indent Test')
paragraph.left_indent = Inches(.25)
print(paragraph.left_indent.inches)
worddoc.save('left_indent.docx')
会做,谢谢! – j4w