python docx无法导入WD_ALIGN_PARAGRAPH

使用python docx过程当中,发现导入对齐方式WD_ALIGN_PARAGRAPH异常

from docx.enum.text import WD_ALIGN_PARAGRAPH

image

改用以下方法:
from docx.enum.text import WD_PARAGRAPH_ALIGNMENT

https://www.nuomiphp.com/eplan/76617.html

posted @ 2023-04-18 14:22  捷后愚生  阅读(375)  评论(0编辑  收藏  举报