Commit c6a5b107 by BellCodeEditor

save project

parent cbb500a3
Showing with 9 additions and 6 deletions
......@@ -29,11 +29,14 @@ def register(): # 注册验证
with open("user.txt","w",encoding="utf-8") as file:
file.write(content)
messagebox.showinfo("恭喜","你是正常人")
app_login = My_login()
app_login.show()
reg_to_login()
def login(): # 登录验证
pass
name,password=app_reg.get_input()
psw=users.get(name)
if psw==password:
messagebox.showinfo("恭喜","你是正常人")
else:
messagebox.showwarning("sb","Clever boy")
class My_login(): # 登录窗口
def __init__(self):
self.root = tkinter.Tk()
......
{"admin": "123456", "b": "b", "c": "c", "a": "aa", "1": "11", "11": "11"}
\ No newline at end of file
{"admin": "123456", "b": "b", "c": "c", "a": "aa", "1": "11", "11": "11", "12": "11"}
\ 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