From 5fc413fa893f98f6f1e8acc9f2c3ba2839087c84 Mon Sep 17 00:00:00 2001 From: "weiye.wang" Date: Wed, 17 Apr 2024 23:45:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=87=E5=AE=9A=E9=A2=98=E5=8F=B7=E7=BC=96?= =?UTF-8?q?=E8=AF=91pdf=E5=8A=9F=E8=83=BD=E5=8A=A0=E4=BA=86=E4=B8=80?= =?UTF-8?q?=E4=B8=AAtqdm=E8=BF=9B=E5=BA=A6=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具v3/指定题号编译pdf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/工具v3/指定题号编译pdf.py b/工具v3/指定题号编译pdf.py index 923be197..e4ad8a4a 100644 --- a/工具v3/指定题号编译pdf.py +++ b/工具v3/指定题号编译pdf.py @@ -131,7 +131,8 @@ class MyWindow(QWidget,Ui_Form): mycursor = mydb.cursor() for p,IDs in self.TitleID_list: currentbodystring = f"\\section{{{p}}}\n\\begin{{enumerate}}\n\n" - for id in generate_number_set(IDs): + print(f"正在从数据库获取数据, 生成源代码...") + for id in tqdm.tqdm(generate_number_set(IDs)): currentbodystring += generateLaTeXBodyContentfromMariaDB(mycursor,id,configjson) currentbodystring += "\\end{enumerate}" bodylist.append(currentbodystring)