From 498a57e17354a32f6ca249120a1d13f3df794e2a Mon Sep 17 00:00:00 2001 From: "weiye.wang" Date: Sun, 23 Jun 2024 07:52:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E9=A1=B5=E8=8E=B7=E5=8F=96=E8=AE=B2?= =?UTF-8?q?=E4=B9=89=E7=9A=84=E8=B7=AF=E5=BE=84=E6=94=B9=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具v4/网页获取讲义.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/工具v4/网页获取讲义.py b/工具v4/网页获取讲义.py index d73ba719..e87dfb83 100644 --- a/工具v4/网页获取讲义.py +++ b/工具v4/网页获取讲义.py @@ -93,7 +93,7 @@ def index(): # obj_dict = load_dict("../题库0.3/LessonObj.json") # basicknowledge_dict = load_dict("../题库0.3/BasicKnowledge.json") consecutivenumbering = structure_dict[papertype]["consecutivenumbering"] - texdata = GenerateSingleLessonNotefromMariaDB(mycursor,pid,structure_dict,notes_dict,"../工具v4/模板文件/讲义模板.txt",os.path.join(outputpath,filename),configjson,consecutivenumbering) #20240415版讲义生成 + texdata = GenerateSingleLessonNotefromMariaDB(mycursor,pid,structure_dict,notes_dict,"./模板文件/讲义模板.txt",os.path.join(outputpath,filename),configjson,consecutivenumbering) #20240415版讲义生成 mydb.close() return f'''

{pid} PDF 文件生成完毕

@@ -122,7 +122,7 @@ def index(): for singleid in problems_list: bodystring += generateLaTeXBodyContentfromMariaDB(mycursor,singleid,configjson) + "\n" bodystring += "\\end{enumerate}\n\n" - templatepath = "../工具v4/模板文件/讲义模板.txt" + templatepath = "./模板文件/讲义模板.txt" outputfilepath = os.path.join(outputpath,filename) texdata = ReadTextFile(templatepath) texdata = StringSubstitute(r"<<[\s\S]*?待替换[\s\S]*?>>",texdata,("选题编译",bodystring))