{"id":27341749,"url":"https://github.com/henryxzx/replace_text","last_synced_at":"2025-04-12T16:28:14.228Z","repository":{"id":43243102,"uuid":"238404012","full_name":"henryxzx/replace_text","owner":"henryxzx","description":"python 批量替换 docx 文档中的内容","archived":false,"fork":false,"pushed_at":"2022-11-30T09:46:49.000Z","size":7,"stargazers_count":1,"open_issues_count":2,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-04T09:06:58.047Z","etag":null,"topics":["python-docx","python-xlrd","python3","pywin32"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/henryxzx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-05T08:40:41.000Z","updated_at":"2023-03-04T09:06:58.047Z","dependencies_parsed_at":"2023-01-22T21:45:45.143Z","dependency_job_id":null,"html_url":"https://github.com/henryxzx/replace_text","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryxzx%2Freplace_text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryxzx%2Freplace_text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryxzx%2Freplace_text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryxzx%2Freplace_text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/henryxzx","download_url":"https://codeload.github.com/henryxzx/replace_text/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248596092,"owners_count":21130635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python-docx","python-xlrd","python3","pywin32"],"created_at":"2025-04-12T16:28:13.165Z","updated_at":"2025-04-12T16:28:14.196Z","avatar_url":"https://github.com/henryxzx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 批量替换 docx 文档内容工具\n批量替换 docx 文档中的内容\n\n\u003e 20.2.13 更新 pywin32 实现替换功能，处理结果与手动打开 word 文档操作相同。\n\n### 项目演示\n\n1. 将需要替换的文档跟 `main.py` 放到同一目录下\n\n   ![](https://raw.githubusercontent.com/henryxzx/Image-Post/master/img/20200205183215.png?token=AIRCYLA23DFKIWXRILODAPC6HKM62)\n\n   \n\n2. 创建一个 excel 文件，命名为 `替换内容.xlsx` ，储存需要修改的值\n\n   ![](https://raw.githubusercontent.com/henryxzx/Image-Post/master/img/20200205200010.png?token=AIRCYLAQLMKLI2YTOEL5XEK6HKXIS)\n\n   \n\n3. 执行 `main.py`\n\n   ![](https://raw.githubusercontent.com/henryxzx/Image-Post/master/img/20200205200149.png?token=AIRCYLBTFGIXNGUBDM4DA6C6HKXOY)\n   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenryxzx%2Freplace_text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenryxzx%2Freplace_text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenryxzx%2Freplace_text/lists"}