From 523f56040ad129641ba49a58562bdc89aa666517 Mon Sep 17 00:00:00 2001 From: "weiye.wang" Date: Wed, 5 Jun 2024 17:29:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E6=94=B6=E5=BD=95=E6=96=B0?= =?UTF-8?q?=E9=A2=98=E5=8A=9F=E8=83=BD=E4=B8=AD=E5=85=B3=E8=81=94=E5=BA=A6?= =?UTF-8?q?=E5=B0=8F=E4=BA=8E0.5=E7=9A=84=E9=A2=98=E7=9B=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=9C=A8=E9=A2=98=E5=8F=B7=E5=88=97=E8=A1=A8=E4=B8=AD?= =?UTF-8?q?=E4=B9=9F=E4=B8=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具v4/批量收录新题.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/工具v4/批量收录新题.py b/工具v4/批量收录新题.py index 91025e5e..d249b8e0 100644 --- a/工具v4/批量收录新题.py +++ b/工具v4/批量收录新题.py @@ -61,11 +61,14 @@ class MyWindow_bdsl(QWidget,Ui_Form): for id,simrate in t: if simrate == 1: psrstring = "rep"+id+"," - else: + elif simrate > 0.5: psrstring += id + "," if psrstring[-1] == ",": psrstring = psrstring[:-1] - output += f"\\item [{psrstring}] {p}\n\n" + if len(psrstring) > 0: + output += f"\\item [{psrstring}] {p}\n\n" + else: + output += f"\\item {p}\n\n" count = 0 for id,simrate in t: if simrate > 0.5: