Commit eecdca55 by BellCodeEditor

save project

parent ee565c8e
Showing with 5 additions and 0 deletions
......@@ -72,6 +72,11 @@ class Note(): # 便签、笔记
# 读取用户信息
with open("user.txt", "r", encoding="utf-8") as f:
info = f.read()
#++++++++++++++++++++++++++++++++++++++++++++++++++++
if info == "":
users = {} # 创建空字典
else:
#++++++++++++++++++++++++++++++++++++++++++++++++++++
users = json.loads(info)
def login_to_reg(): # 登录界面转注册界面
......
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