Commit df0f5f5d by BellCodeEditor

save project

parent 466e8b48
Showing with 1 additions and 1 deletions
...@@ -26,7 +26,7 @@ def register(): ...@@ -26,7 +26,7 @@ def register():
messagebox.showwarning("用户名已存在") messagebox.showwarning("用户名已存在")
elif password1 != password2: elif password1 != password2:
messagebox.showwarning("两次密码不一致") messagebox.showwarning("两次密码不一致")
elif: else:
users[name] = password1 users[name] = password1
content = json.dumps(users) content = json.dumps(users)
with open("user.txt","w",encoding="utf-8")as file: with open("user.txt","w",encoding="utf-8")as 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