Commit 1fef133a by BellCodeEditor

save project

parent 36ffe43c
Showing with 2 additions and 2 deletions
import tkinter
with open("users.txt","r",encoding="utf-8") as file:
with open("user.txt","r",encoding="utf-8") as file:
a=file.read()
users=json.loads(a)
def login_to_reg(): # 登录界面转注册界面
......@@ -24,7 +24,7 @@ def register(): # 注册验证
else:
users[name]=pawssword1
content=json.dumps(users)
with open("users.txt","w",encoding="utf-8") as file:
with open("user.txt","w",encoding="utf-8") as file:
file.write(content)
messagebox.showinfo("恭喜","你是正常人")
login_show()
......
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