We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95beb7d commit 5f47c1dCopy full SHA for 5f47c1d
trackerslist.py
@@ -34,12 +34,12 @@ def merge_files(contents):
34
35
# 添加当前时间到合并结果的第一行,同时在第一行下方添加一个空行
36
current_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
37
-print(f"当前时间:{current_time}"
+print("当前时间:" + {current_time})
38
merged_content_with_time = f"更新时间: {current_time}\n\n{merged_content}"
39
40
# 保存合并结果到文件
41
output_file = "trackerslist.txt"
42
with open(output_file, "w") as file:
43
file.write(merged_content_with_time)
44
45
-print(f"文件已合并为 {output_file}")
+print("文件已合并为 " + output_file)
0 commit comments