From f9023b60a0c491f0d78afe09e4d63e6fa8ff5111 Mon Sep 17 00:00:00 2001 From: wangweiye7840 Date: Mon, 17 Jun 2024 11:24:40 +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=20=E6=98=BE=E7=A4=BA=20=E8=AE=B2=E4=B9=89=E5=A4=87?= =?UTF-8?q?=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具v4/database_tools_2.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/工具v4/database_tools_2.py b/工具v4/database_tools_2.py index 7e75fca5..8f581b33 100644 --- a/工具v4/database_tools_2.py +++ b/工具v4/database_tools_2.py @@ -2558,6 +2558,8 @@ def GenerateSingleLessonNotefromMariaDB(cursor,id,structuredict,notesdict,templa # if not structure[sectionkey]["spaceflag"] or answered: # content = re.sub(r"\\vspace[\*]?\{[\S]*\}","\n",content) output += content + "\n\n" + if notesdict[id]["remark"] != "": + output += f"\n\n\\newpage\n\n\\section{{备注}}\n\n{notesdict[id]['remark']}\n\n" latex_raw = ReadTextFile(templatepath) latex_raw = latex_raw.replace(r"学号\blank{50} \ 姓名\blank{80}","上海市控江中学") #替换掉模板中的姓名学号