Commit b159d416 by BellCodeEditor

auto save

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