Commit eecdca55 by BellCodeEditor

save project

parent ee565c8e
Showing with 6 additions and 1 deletions
......@@ -72,7 +72,12 @@ class Note(): # 便签、笔记
# 读取用户信息
with open("user.txt", "r", encoding="utf-8") as f:
info = f.read()
users = json.loads(info)
#++++++++++++++++++++++++++++++++++++++++++++++++++++
if info == "":
users = {} # 创建空字典
else:
#++++++++++++++++++++++++++++++++++++++++++++++++++++
users = json.loads(info)
def login_to_reg(): # 登录界面转注册界面
app_login.root.destroy()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment