diff --git a/工具v2/database_tools.py b/工具v2/database_tools.py index 65240ce9..5b5320a9 100644 --- a/工具v2/database_tools.py +++ b/工具v2/database_tools.py @@ -2157,7 +2157,7 @@ def PaintRedAnswers(string,prodict): #将prodict中已有的答案标红色 if new_ans == raw_ans: sub_string = raw_string.replace("textcolor{blue}","textcolor{red}") output = output.replace(raw_string,sub_string) - elif raw_ans == "": + elif raw_ans == "" and new_ans != "暂无答案": print(f"{id} 已有答案, 请运行提取答案控件以获取新录入的答案") elif new_ans != "暂无答案": print(f"{id} 新答案 {new_ans} 和原答案 {raw_ans} 有所不同, 请仔细检查")