缩进看起来很简单,终端打印出正确的缩进,但是保存在我的 Word 文档中的缩进却没有反映出来。
这里我做错了什么吗?
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')