在小闲导入的题型判断中添加多选题

This commit is contained in:
wangweiye7840 2024-05-07 18:23:53 +08:00
parent 39fdc42672
commit a3151944a0
1 changed files with 1 additions and 1 deletions

View File

@ -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]])