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: