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.uj5u.com/houduan/93482.html
標籤:Python
上一篇:Python基礎-函式
