From 4bda02c7988f9b9146073e4f0873fd6e09c995cd Mon Sep 17 00:00:00 2001 From: HuangHai <10402852@qq.com> Date: Thu, 10 Jul 2025 14:13:37 +0800 Subject: [PATCH] 'commit' --- dsLightRag/ShiTi/T3_DocxToMd.py | 13 +++++++++---- .../《动能定理》巩固练习_origin.pdf | Bin 326324 -> 326324 bytes 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/dsLightRag/ShiTi/T3_DocxToMd.py b/dsLightRag/ShiTi/T3_DocxToMd.py index 96250e19..68356952 100644 --- a/dsLightRag/ShiTi/T3_DocxToMd.py +++ b/dsLightRag/ShiTi/T3_DocxToMd.py @@ -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: diff --git a/dsLightRag/output/《动能定理》巩固练习/auto/《动能定理》巩固练习_origin.pdf b/dsLightRag/output/《动能定理》巩固练习/auto/《动能定理》巩固练习_origin.pdf index 462905f79cf19b8b9ba15cf062f693258cb4950d..1c8cd74609aba252739ff3dc0ed3a1f938ed7160 100644 GIT binary patch delta 84 zcmdn;Rd~x+;R!dGEes4AZ@1oNY`x9YdYgIcZI<$%M&^ztF6M?tW=3WP7G}<_&ZdS& ZmX?Mt#^yj^=3;7MXM?U{ddn{s0{}j?8;Sq` delta 84 zcmdn;Rd~x+;R!dGjf^ZBZ@1oNY`x9YdYgIcZI<$%MkYqa=9VVru9l957RF8{Zl;Dt ZmX?Mt#^yj^=3;7MXM?U{ddn{s0{}hM8-f4;