main
HuangHai 2 weeks ago
parent 9e94eaf2b8
commit 4bda02c798

@ -91,13 +91,18 @@ async def main():
# 分割试题内容
questions = []
current_question = ""
found_first_question = False
for line in content.split('\n'):
if any(line.startswith(f"【题型】 {t}") for t in question_types):
if current_question:
questions.append(current_question.strip())
current_question = line + "\n"
else:
if not found_first_question:
found_first_question = True
current_question = "**" + line + "**\n" # 加粗处理
else:
if current_question:
questions.append(current_question.strip())
current_question = "**" + line + "**\n" # 加粗处理
elif found_first_question:
current_question += line + "\n"
if current_question:

Loading…
Cancel
Save