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')