From d9322e3f6a97153a46df1359b690eab56c4768ad Mon Sep 17 00:00:00 2001 From: wangweiye7840 Date: Fri, 26 Apr 2024 10:59:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=85=B7v4=E7=9A=84parse=E9=A2=98?= =?UTF-8?q?=E7=9B=AEmeta=E4=BF=A1=E6=81=AF=E7=9A=84=E4=B8=80=E5=A4=84bug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具v4/database_tools_2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/工具v4/database_tools_2.py b/工具v4/database_tools_2.py index bca97b35..9cd3b9e0 100644 --- a/工具v4/database_tools_2.py +++ b/工具v4/database_tools_2.py @@ -460,7 +460,7 @@ def GenerateProblemListFromString2024(data): #从来自.tex文件的字符串生 related_id_list = [] unrelated_id_list = [] content = re.sub(r"^\[[A-Za-z\d,\s]*?\]","",content_raw).strip() - metaraw = re.findall(r"\[.*\]",content_raw)[0] + metaraw = re.findall(r"\[.*?\]",content_raw)[0] metaraw = re.sub(r"[\[\]]","",metaraw) metalist = metaraw.split(",") for metaitem in metalist: