Update iptv流畅度检测.py

This commit is contained in:
frxz751113
2024-08-16 01:10:46 +08:00
committed by GitHub
parent 72287fa3df
commit b550ffeead
+1 -1
View File
@@ -889,7 +889,7 @@ replacements = {
with open('酒店优选.txt', 'r', encoding='utf-8') as file: with open('酒店优选.txt', 'r', encoding='utf-8') as file:
lines = file.readlines() lines = file.readlines()
# 创建新文件并写入替换后的内容 # 创建新文件并写入替换后的内容
with open('酒店.txt', 'w', encoding='utf-8') as new_file: with open('酒店优选.txt', 'w', encoding='utf-8') as new_file:
for line in lines: for line in lines:
for old, new in replacements.items(): for old, new in replacements.items():
line = line.replace(old, new) line = line.replace(old, new)