在小闲导入的题型判断中添加多选题
This commit is contained in:
parent
39fdc42672
commit
a3151944a0
|
|
@ -2619,7 +2619,7 @@ def generateColIndexandMarks(filepath,statsfilename,paperinfo): #根据filepath(
|
||||||
validcols = []
|
validcols = []
|
||||||
for i in range(len(dfcurrent.columns)):
|
for i in range(len(dfcurrent.columns)):
|
||||||
colname = str(dfcurrent.iloc[1,i])
|
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)
|
validcols.append(i)
|
||||||
for col in range(len(validcols)-1,-1,-1):
|
for col in range(len(validcols)-1,-1,-1):
|
||||||
colname = str(dfcurrent.iloc[1,validcols[col]])
|
colname = str(dfcurrent.iloc[1,validcols[col]])
|
||||||
|
|
|
||||||
Reference in New Issue