Commit b63faa73 by BellCodeEditor

auto save

parent b4da351d
Showing with 4 additions and 4 deletions
......@@ -26,13 +26,13 @@ def register(): # 注册验证
elif name in users:
messagebox.showwarning("不🆗")
elif password1 != password2:
messagebox.showwarning("不🆗")
messagebox.showwarning("不ok")
else:
users[name]=password1
content=json.dumps(users)
with open("user.txt","w",encoding="utf-8")as file:
file.write(content)
messagebox.showinfo("🆗")
messagebox.showinfo("ok")
login_show()
......
{"admin": "123456"}
\ No newline at end of file
{"admin": "123456", "k": "1", "q": "q", "de": "123", "ookk": "123", "89": "123"}
\ 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