Commit 80e0e6d0 by BellCodeEditor

save project

parent f9b3dc72
Showing with 3 additions and 3 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.dumps(users) content = json.dumps(users,ascii(True))
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)
#成功跳往登陆界面 #成功跳往登陆界面
......
{"admin": "123456", "\u5730\u65b9\uff0c\u597d\u5676\u5730\u65b9\u8270\u82e6\u9ad8\u8003\u8f85\u5bfc\u529f\u8bfe": "", "\u7684\u4ebaGreg": "", "\u5730\u65b9\u7684\u826f\u597d\u7684\u63a5\u53e3\u8fd4\u56de\u7684": "123", "sfdafd": "", "efesfads": "", "411": "123", "d\u9ed1\u6697\u65f6": "123", "\u554a\u624b\u52a8\u9600\u51e0\u4e4e\u90fd\u662f\u5ba2\u5bb6\u8bdd": "", "\u7684\u623f\u4ef7\u8fc7\u5feb\u7684\u53cd\u9988\u548c\u53ef\u89c1\u5149": "123"} {"admin": "123456"}
\ No newline at end of file \ 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