From 1fb0abb3b7d8ddc7f29c3700f928a30f9c888651 Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Wed, 28 Aug 2024 02:01:57 +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 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/py/网络收集.py b/py/网络收集.py index 123d981..d4cf6f9 100644 --- a/py/网络收集.py +++ b/py/网络收集.py @@ -525,8 +525,6 @@ with open("网络收集.txt", "w", encoding="utf-8") as file: -current_date = datetime.datetime.now().strftime('%m%d') # 获取当前日期并格式化 -output_file_name = '网络收集' + current_date + '.txt' # 定义输出文件名 def parse_file(input_file_path, output_file_name): # # 正则表达式匹配从'//'开始到第一个'/'或第一个'::'结束的部分 ip_or_domain_pattern = re.compile(r'//([^/:]*:[^/:]*::[^/:]*|[^/]*)') @@ -575,7 +573,7 @@ def parse_file(input_file_path, output_file_name): # output_file.write('\n') # 在每个小段后添加一个空行作为分隔 alphabet_counter += 1 # 递增字母计数器 # 调用函数并传入文件路径和输出文件名 -parse_file('网络收集.txt', output_file_name) +parse_file('网络收集.txt', '网络收集.txt')