Commit 4cbc68aa by BellCodeEditor

save project

parent 9fd1e653
Showing with 12 additions and 4 deletions
......@@ -26,10 +26,18 @@ def register(): # 注册验证
messagebox.showwarning("错误","两次输入的密码不一致")
else:
users[name]=mima
s2=json.dumps(users)
with open("user.txt","w",encoding="utf-8") as f2:
f2.write(s2)
messagebox.showwarning('提示','注册成功')
reg_to_login()
def login(): # 登录验证
pass
name,mima=app_login.get_input()
mima6=users.get(name)
if mima==mima6:
messagebox.showwarning('提示','注册成功')
else:
messagebox.showinfo("错误","用户名密码错误")
class My_login(): # 登录窗口
def __init__(self):
self.root = tkinter.Tk()
......
{"admin": "123456"}
\ No newline at end of file
{"a": "123", "j": "1"}
\ 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