from docx import Document
import pandas as pd
import copy
def replace(document, replace_str_dict):
print("------在word模板文件中替换合同要素信息")
for paragraph in document.paragraphs:
for run in paragraph.runs:
for key,value in replace_str_dict.items():
run.text = run.text.replace(key, value)
for table in document.tables:
for row in table
用excel替换word里的文字,deepcopy
最新推荐文章于 2023-10-04 17:24:18 发布
本文探讨如何利用Excel功能来替代Word中的特定文字,同时深入解析Python中的deepcopy概念,阐述其在数据复制时的重要作用和使用场景。

最低0.47元/天 解锁文章
1336

被折叠的 条评论
为什么被折叠?



