Commit 13e0fb82 by BellCodeEditor

auto save

parent 0fd773ea
Showing with 9 additions and 2 deletions
...@@ -28,8 +28,13 @@ def register(): # 注册验证 ...@@ -28,8 +28,13 @@ def register(): # 注册验证
messagebox.showwarning("警告","两次密码不一致") messagebox.showwarning("警告","两次密码不一致")
else: else:
uses[name]=password1 uses[name]=password1
user =json.dumps(uses) con =json.dumps(uses)
with open("user.txt","w",encoding="utf-8") as fifo:
fifo.write(con)
messagebox.showinfo("成功","注册成功")
app_reg.root.destroy()
app_login=My_login()
app_login.show()
def login(): # 登录验证 def login(): # 登录验证
pass pass
......
{"www": "www", "admin": "123", "1": "22"}
\ No newline at end of file
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