Commit 403dd3e5 by BellCodeEditor

save project

parent 40af6fff
Showing with 2 additions and 3 deletions
......@@ -25,7 +25,8 @@ def register():
elif password1 != password2:
messagebox.showwarning("错误","两次密码不一致!")
else:users[name]=json.dumps(users)
with open("user.txt","w",encoding="utf-8") as file:
content=json.dumps(users)
with open("user.txt","w",encoding="utf-8") as file:
file.write(content)
messagebox.showinfo("成功","注册成功")
reg_to_login()
......
{"admin": "123456"}
\ 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