标签:sha bsp 页脚 页眉页脚 print nbsp docx imp share
from docx import Document from docx.shared import Cm 文件=Document(r‘E:\word练习\页眉页脚.docx‘) 第一节=文件.sections[0] print(第一节.gutter.cm) 第一节.gutter=Cm(2) print(第一节.gutter.cm) 文件.save(r‘E:\word练习\设置装订线.docx‘)
标签:sha bsp 页脚 页眉页脚 print nbsp docx imp share
原文地址:https://www.cnblogs.com/luckiness/p/13287330.html