支持两种学生名单

This commit is contained in:
2025-06-04 22:16:46 +08:00
parent a2250d25cf
commit 4517a06eff
3 changed files with 27 additions and 14 deletions

View File

@@ -43,7 +43,7 @@ class DocPaper:
for run in para.runs:
for key, val in data_list.items():
if key in run.text:
run.text = run.text.replace(key, val)
run.text = run.text.replace(key, str(val))
break
def save(self, path: str = './'):