From c2c85dc07c5e088f62349ff69e7f3b7347228395 Mon Sep 17 00:00:00 2001 From: "weiye.wang" Date: Sat, 30 Sep 2023 23:30:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9"=E6=B5=8B=E8=AF=95=E7=8F=AD"?= =?UTF-8?q?=E5=B8=A6=E6=9D=A5=E7=9A=84=E6=95=B0=E6=8D=AE=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具v2/小闲平台使用数据导入.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/工具v2/小闲平台使用数据导入.py b/工具v2/小闲平台使用数据导入.py index 80dbbdc0..d410c2a3 100644 --- a/工具v2/小闲平台使用数据导入.py +++ b/工具v2/小闲平台使用数据导入.py @@ -83,7 +83,7 @@ if execflag: if len(re.findall("^"+pind+"\s",p))>0: correspondence_dict[pind] = p[p.index(" ")+1:] - for sf in [f for f in statfiles]: + for sf in [f for f in statfiles if re.findall(r"\d",f) != []]: #读取文件生成区域列表与难度列表 gradename = re.findall(r"高[一二三]",sf)[0] classname = str(semester+shiftdict[gradename])+"届"+gradename+re.findall(r"高[一二三]([\d]*?)班",sf)[0].zfill(2)+"班"