From ff452b5342e238f417f05c8776df382757c3312b Mon Sep 17 00:00:00 2001 From: wangweiye7840 Date: Tue, 4 Jul 2023 18:56:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9database=5Ftools=E9=87=8C?= =?UTF-8?q?=E7=9A=84=E4=B8=80=E4=B8=AA=E5=B0=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具v2/database_tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = []