Commit b159d416 by BellCodeEditor

auto save

parent 9bab4014
Showing with 4 additions and 3 deletions
......@@ -25,9 +25,10 @@ def register(): # 注册验证
else:
users[name]=password1
messagebox.showwarning("警告","账号注册成功")
app_reg.root.destroy()
app_login = My_login()
app_login.show()
with open ("user.txt","w",encoding="utf-8") as f:
f.write(json.dumps(users))
users=json.loads(info)
def login(): # 登录验证
pass
......
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