From a3151944a03a40ff4f476d33213acc815d839a01 Mon Sep 17 00:00:00 2001 From: wangweiye7840 Date: Tue, 7 May 2024 18:23:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E5=B0=8F=E9=97=B2=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E7=9A=84=E9=A2=98=E5=9E=8B=E5=88=A4=E6=96=AD=E4=B8=AD=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=A4=9A=E9=80=89=E9=A2=98?= 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 9784cc80..178315af 100644 --- a/工具v4/database_tools_2.py +++ b/工具v4/database_tools_2.py @@ -2619,7 +2619,7 @@ def generateColIndexandMarks(filepath,statsfilename,paperinfo): #根据filepath( validcols = [] for i in range(len(dfcurrent.columns)): colname = str(dfcurrent.iloc[1,i]) - if ("单选" in colname or "填空" in colname or "主观" in colname or "步" in colname) and re.findall("[ABCD]",colname) == []: + if ("单选" in colname or "多选" in colname or "填空" in colname or "主观" in colname or "步" in colname ) and re.findall("[ABCD]",colname) == []: validcols.append(i) for col in range(len(validcols)-1,-1,-1): colname = str(dfcurrent.iloc[1,validcols[col]])