支持两种学生名单
This commit is contained in:
@@ -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 = './'):
|
||||
|
||||
Reference in New Issue
Block a user