diff --git a/工具v2/新题比对.py b/工具v2/新题比对.py index 545bf02c..ee1ea8f3 100644 --- a/工具v2/新题比对.py +++ b/工具v2/新题比对.py @@ -17,11 +17,11 @@ for p in problems: t = stringmaxsim(p_treated,treated_dict,3) count = 0 for id,simrate in t: - output += "\\begin{tcolorbox}"+f"[colback = {colors[count]}!10!white, colframe = orange!10!white, breakable]\n" + output += "\n\\begin{tcolorbox}"+f"[colback = {colors[count]}!10!white, colframe = orange!10!white, breakable]\n" output += f"{simrate:.3f} \\ {id}\n\n" content = pro_dict[id]["content"] output += f"{content}\n" - output += "\\end{tcolorbox}" + output += "\\end{tcolorbox}\n" count += 1 output += "\n\n" output += "\n\\end{enumerate}\n\n"