From 6e56af94b4d19219620937e034e96e849f3a8b4b Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Wed, 14 Sep 2022 17:54:24 +0800 Subject: [PATCH] save project --- my_app.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/my_app.py b/my_app.py index cec29f9..cc7c9ac 100644 --- a/my_app.py +++ b/my_app.py @@ -22,9 +22,13 @@ def register(): # 注册验证 elif password1 !=password2: messagebox.showerror("警告") else: - users[name]=password1 + users[name]=password1 + content=json.dumps(users) + with open("user.txt","w",encoding="utf-8") as file: + file.write(content) + def login(): # 登录验证 - pass + name,password= app_login.get_input() class My_login(): # 登录窗口 def __init__(self): -- libgit2 0.25.0