From 141b1fd3a6fe624cc720a7e8e764f2de764db1e7 Mon Sep 17 00:00:00 2001 From: "weiye.wang" Date: Sun, 16 Apr 2023 07:54:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=99=E9=A2=98=E9=87=8D=E5=81=9A=E6=9D=A5?= =?UTF-8?q?=E6=BA=90=E9=A2=98=E7=9B=AE=E5=8A=A0=E4=BA=86=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E6=8B=AC=E5=8F=B7=EF=BC=8C=E6=96=B9=E4=BE=BF=E7=94=A8regex?= =?UTF-8?q?=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具/错题重做来源清点.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/工具/错题重做来源清点.py b/工具/错题重做来源清点.py index 715dee54..1b250644 100644 --- a/工具/错题重做来源清点.py +++ b/工具/错题重做来源清点.py @@ -55,19 +55,19 @@ for texfile in new_texfiles: print(",".join(ids)) for id in ids: if id in id_resp_dict: - print("%s\t(已做题)\t%s"%(id,",".join(id_resp_dict[id]))) - output += "%s\t(已做题)\t%s\n"%(id,",".join(id_resp_dict[id])) + print("(%s)\t(已做题)\t%s"%(id,",".join(id_resp_dict[id]))) + output += "(%s)\t(已做题)\t%s\n"%(id,",".join(id_resp_dict[id])) elif id_related: rel_ids = pro_dict[id]["related"] origins = [] for id in rel_ids: if id in id_resp_dict: origins += id_resp_dict[id] - print("%s\t(关联题)\t%s"%(id,",".join(origins))) - output += "%s\t(关联题)\t%s\n"%(id,",".join(origins)) + print("(%s)\t(关联题)\t%s"%(id,",".join(origins))) + output += "(%s)\t(关联题)\t%s\n"%(id,",".join(origins)) else: - print("%s\t(无关题)") - output += "%s\t(无关题)\n" + print("(%s)\t(无关题)") + output += "(%s)\t(无关题)\n" print("") output += "\n"