perf: 颜色日志-美化控制台显示

This commit is contained in:
Soulter
2023-05-14 20:38:28 +08:00
parent a3e21bea1a
commit f46de3d518
5 changed files with 113 additions and 50 deletions
-2
View File
@@ -272,7 +272,6 @@ class Command:
del_mode = False
if l[1] == "d":
print("删除关键词: "+l[2])
del_mode = True
try:
@@ -291,7 +290,6 @@ class Command:
return False, "该关键词不存在", "keyword"
keyword = {l[1]: l[2]}
with open("keyword.json", "w", encoding="utf-8") as f:
print("设置指令: "+l[1]+" -> "+l[2])
json.dump(keyword, f, ensure_ascii=False, indent=4)
f.flush()
if del_mode: