Commit 9574f966 by BellCodeEditor

save project

parent 53465f23
Showing with 1 additions and 1 deletions
...@@ -26,7 +26,7 @@ def register(): # 注册验证 ...@@ -26,7 +26,7 @@ def register(): # 注册验证
messagebox.showwarning("戳辣","你") messagebox.showwarning("戳辣","你")
else: else:
users[name] = password1 users[name] = password1
content=json.dump(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:
file.write(content) file.write(content)
messagebox.showinfo("戳辣","注册大失败") 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