https://github.com/henryxzx/replace_text
python 批量替换 docx 文档中的内容
https://github.com/henryxzx/replace_text
python-docx python-xlrd python3 pywin32
Last synced: about 1 year ago
JSON representation
python 批量替换 docx 文档中的内容
- Host: GitHub
- URL: https://github.com/henryxzx/replace_text
- Owner: henryxzx
- License: mit
- Created: 2020-02-05T08:40:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-11-30T09:46:49.000Z (over 3 years ago)
- Last Synced: 2023-03-04T09:06:58.047Z (over 3 years ago)
- Topics: python-docx, python-xlrd, python3, pywin32
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 批量替换 docx 文档内容工具
批量替换 docx 文档中的内容
> 20.2.13 更新 pywin32 实现替换功能,处理结果与手动打开 word 文档操作相同。
### 项目演示
1. 将需要替换的文档跟 `main.py` 放到同一目录下

2. 创建一个 excel 文件,命名为 `替换内容.xlsx` ,储存需要修改的值

3. 执行 `main.py`
