Skip to content

Commit 5f47c1d

Browse files
authored
Update trackerslist.py
1 parent 95beb7d commit 5f47c1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

trackerslist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ def merge_files(contents):
3434

3535
# 添加当前时间到合并结果的第一行,同时在第一行下方添加一个空行
3636
current_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
37-
print(f"当前时间:{current_time}"
37+
print("当前时间:" + {current_time})
3838
merged_content_with_time = f"更新时间: {current_time}\n\n{merged_content}"
3939

4040
# 保存合并结果到文件
4141
output_file = "trackerslist.txt"
4242
with open(output_file, "w") as file:
4343
file.write(merged_content_with_time)
4444

45-
print(f"文件已合并为 {output_file}")
45+
print("文件已合并为 " + output_file)

0 commit comments

Comments
 (0)