From 575dc1a37dcfb091ff9ea819222f755004219d46 Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Tue, 27 Aug 2024 19:55:18 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E7=BD=91=E7=BB=9C=E6=94=B6=E9=9B=86.p?= =?UTF-8?q?y?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py/网络收集.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/网络收集.py b/py/网络收集.py index 5bfea60..72d3366 100644 --- a/py/网络收集.py +++ b/py/网络收集.py @@ -113,7 +113,7 @@ def read_and_process_file(input_filename, output_filename, encodings=['utf-8', ' for line in lines: if '$' in line: # 截取到'$'之前的部分,注意去除可能的换行符 - processed_line = line.split('$')[0].rstrip('\n') + processed_line = line.split('¥')[0].rstrip('\n') outfile.write(processed_line + '\n') # 写入处理后的行到文件,并添加换行符 else: # 正常写入行到文件,并添加换行符