From 243b48834054ff2e895b75154a86cb953a5a11f1 Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Tue, 1 Oct 2024 11:53:01 +0800 Subject: [PATCH] Update p2p.py --- py/p2p.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/p2p.py b/py/p2p.py index 47cbb36..58aefc9 100644 --- a/py/p2p.py +++ b/py/p2p.py @@ -134,7 +134,7 @@ def process_urls_multithreaded(lines, max_workers=30): ################################################# 写入文件 def write_list(file_path, data_list): - with open(file_path, 'w', encoding='utf-8') as: + with open(file_path, 'w', encoding='utf-8') as file: for item in data_list: file.write(item + '\n')