批量导入题目增加显示来源功能
This commit is contained in:
parent
8ab00417a6
commit
2723dd1122
|
|
@ -232,7 +232,7 @@ def AddProblemstoDict(startingid,raworigin,problems,editor,indexdescription,thed
|
|||
newproblem["space"] = "4em"
|
||||
thedict[pid] = newproblem
|
||||
maxsim,argmaxsim = detectmaxsim(pid,[pid],thedict)
|
||||
print("已收录题号: %s, 最接近题目: %s, 相似程度: %.3f, 题目类型: %s, 题目内容: %s"%(pid,argmaxsim,maxsim,newproblem["genre"],p))
|
||||
print("已收录题号: %s, 最接近题目: %s, 相似程度: %.3f, 题目类型: %s, 题目来源: %s, 题目内容: %s"%(pid,argmaxsim,maxsim,newproblem["genre"],origin,p))
|
||||
id += 1
|
||||
return 0
|
||||
|
||||
|
|
|
|||
Reference in New Issue