From b0319df2c29ceea0d3ee312332707e6f6d29e349 Mon Sep 17 00:00:00 2001 From: "weiye.wang" Date: Sat, 10 Feb 2024 15:41:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E5=B0=8F=E9=97=B2=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E6=96=87=E4=BB=B6=E5=90=8D=E5=AD=97=E7=9A=84?= =?UTF-8?q?=E6=9B=B4=E6=94=B9=E4=BD=9C=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具v2/database_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/工具v2/database_tools.py b/工具v2/database_tools.py index 3af1ad66..f82eda44 100644 --- a/工具v2/database_tools.py +++ b/工具v2/database_tools.py @@ -1673,7 +1673,7 @@ def ExtractProblemIDs(paperdict,pro_dict):#从备课组材料的每一张讲义 def ParseZipname(zipfilename): #小闲平台的zip文件中获得试卷编号, 返回试卷编号字符串 - xiaoxianpid = re.findall(r"^(\d*?)_",os.path.split(zipfilename)[1]) + xiaoxianpid = re.findall(r"^[可选_]*(\d*?)_",os.path.split(zipfilename)[1]) return xiaoxianpid[0] def FindFile(dir,filename): #在指定目录及子目录下寻找特定文件名的文件, 返回文件所在的路径列表