Commit 123eabba by BellCodeEditor

save project

parent 7869cf47
Showing with 1 additions and 1 deletions
......@@ -28,7 +28,7 @@ def register(): # 注册验证
messagebox.showwarning("错误","两次密码不一样。")
else:
users[name] = password1
content = json.dump(users)
content = json.dumps(users)
with open("user.txt","w",encoding="utf_8") as file:
file.write(content)
messagebox.showinfo("成功","注册成功。")
......
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