Commit 0e2815fd by BellCodeEditor

save project

parent b9d05063
Showing with 10 additions and 3 deletions
...@@ -34,7 +34,14 @@ def register(): # 注册验证 ...@@ -34,7 +34,14 @@ def register(): # 注册验证
messagebox.showinfo("成功","登录成功") messagebox.showinfo("成功","登录成功")
def login(): # 登录验证 def login(): # 登录验证
name,password = app_login name,password = app_login
mima2 = users.get(name)
if mima2 == mima:
messagebox.showinfo("成功","登录成功")
else:
messagebox.showerror("错误","用户名或密码错误")
class My_login(): # 登录窗口 class My_login(): # 登录窗口
def __init__(self): def __init__(self):
self.root = tkinter.Tk() self.root = tkinter.Tk()
......
{"admin": "123456"} {"admin": "123456", "\u56db": "123t"}
\ 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