diff --git a/工具v2/database_tools.py b/工具v2/database_tools.py index 6e406680..a942ae3d 100644 --- a/工具v2/database_tools.py +++ b/工具v2/database_tools.py @@ -716,7 +716,7 @@ def XeLaTeXCompile(filedir,filename): #在filedir目录中用XeLaTeX编译filena flagsuc = False return flagsuc # 若第二次编译成功则返回True, 否则返回False -def GenerateStudentBodyString(problems,sectiontitles,pro_dict,consecutivenumbering,answered,spaceflag): #生成学生版的.tex文件的主体内容 +def GenerateStudentBodyString(problems,sectiontitles,pro_dict,consecutivenumbering= True,answered= True,spaceflag=True): #生成学生版的.tex文件的主体内容 bodystring = "" if len(problems) == len(sectiontitles): count = 0