diff --git a/工具v2/database_tools.py b/工具v2/database_tools.py index 2e0d4c18..09fe7689 100644 --- a/工具v2/database_tools.py +++ b/工具v2/database_tools.py @@ -758,7 +758,7 @@ def GenerateUsageTexCode(id,prodict,topandbottomusagestuple): #根据topandbotto usagecode = re.sub("\\t([\d]\.[\d]{0,10})",GenerateValueColorCode,"\n\n".join(usages)) return usagecode #返回缩减后的使用记录列表 -def GenerateTeacherBodyString(problems,sectiontitles,prodict,objdict,consecutivenumbering,topandbottomusagestuple): #生成学生版的.tex文件的主体内容 +def GenerateTeacherBodyString(problems,sectiontitles,prodict,objdict,consecutivenumbering,topandbottomusagestuple): #生成教师版的.tex文件的主体内容 bodystring = "" if len(problems) == len(sectiontitles): count = 0 @@ -780,7 +780,7 @@ def GenerateTeacherBodyString(problems,sectiontitles,prodict,objdict,consecutive sectionstring += "\\item (%s) %s\n\n%s"%(id,prodict[id]["content"],aftercontent) sectionstring += "\\end{enumerate}" bodystring += sectionstring - return bodystring #返回主题内容字符串 + return bodystring #返回主体内容字符串 def GetValidTexFiles(path): #获取 有题号的.tex文件列表 及 有题号的.tex文件所在的路径列表 texlist = []