摘要: ## 1. 分区 就是分多个节(部分),每个节可以单独设置页面等信息。 ```python from docx import Document doc = Document() # 获取Sections对象 sections = doc.sections print(type(sections)) 阅读全文
posted @ 2023-05-20 17:18 叁只小羊 阅读(311) 评论(0) 推荐(0)
摘要: python-docx 用于创建和更新Word文件的python库 ## 1. 安装 ``` pip3 install python-docx -i https://mirrors.aliyun.com/pypi/simple ``` ## 2. 创建与保存文件 ```python #导入Docum 阅读全文
posted @ 2023-05-20 11:09 叁只小羊 阅读(256) 评论(0) 推荐(0)