From 9f2fa7e2e7108ec9a8f15427b973fd92b68f7d51 Mon Sep 17 00:00:00 2001 From: wangweiye7840 Date: Wed, 26 Jul 2023 17:24:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E6=94=B6=E5=BD=95=E9=A2=98?= =?UTF-8?q?=E7=9B=AE=E6=97=B6=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=B8=AA=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E9=A2=98=E7=9B=AE=E6=9C=80=E5=90=8E=E6=8D=A2=E8=A1=8C?= =?UTF-8?q?=E7=AC=A6=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具v2/database_tools.py | 1 + 1 file changed, 1 insertion(+) diff --git a/工具v2/database_tools.py b/工具v2/database_tools.py index 55b59817..b497863f 100644 --- a/工具v2/database_tools.py +++ b/工具v2/database_tools.py @@ -190,6 +190,7 @@ def GenerateProblemListFromString(data): #从来自.tex文件的字符串生成 for pos in problempositions: content = data[pos[0]:pos[1]].strip() content = re.sub(r"\n\%[\s\S]*$","",content) #题目内容 + content = re.sub(r"\\\\$","",content) # 删去题目最后一行处可能存在的\\ subdata = data[:pos[0]] #开始寻找出处中缀 suflist = re.findall(r"\n(\%\s{0,}[\S]+)\n",subdata) if len(suflist) == 0: