修改正文行间距

from  docx  import  Document
w=Document(r'D:word练习练习.docx')
for  paragraph  in  w.paragraphs:
    if  paragraph.style.name=='Normal':
        paragraph.paragraph_format.line_spacing=4.0
w.save(r'D:word练习行间距.docx')
原文地址:https://www.cnblogs.com/luckiness/p/13266324.html