From 6dbd676d3f4975538a7fb88f529e70247c3787f8 Mon Sep 17 00:00:00 2001 From: "weiye.wang" Date: Thu, 6 Jun 2024 22:01:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=B9=E9=87=8F=E6=94=B6?= =?UTF-8?q?=E5=BD=95=E6=96=B0=E9=A2=98=E7=9A=84=E4=B8=80=E4=B8=AAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具v4/批量收录新题.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/工具v4/批量收录新题.py b/工具v4/批量收录新题.py index d249b8e0..fba6d90f 100644 --- a/工具v4/批量收录新题.py +++ b/工具v4/批量收录新题.py @@ -63,7 +63,7 @@ class MyWindow_bdsl(QWidget,Ui_Form): psrstring = "rep"+id+"," elif simrate > 0.5: psrstring += id + "," - if psrstring[-1] == ",": + if len(psrstring) > 0 and psrstring[-1] == ",": psrstring = psrstring[:-1] if len(psrstring) > 0: output += f"\\item [{psrstring}] {p}\n\n"