Commit d2ef3380 by BellCodeEditor

auto save

parent c1b7cb86
Showing with 11 additions and 0 deletions
import tkinter
from tkinter import messagebox
import json
with open("user.txt","r",encoding="utf-8") as f:
info = f.read()
users =json.loads(info)
def login_to_reg():
app_login.root.destroy()
global app_reg
......@@ -16,6 +21,8 @@ def register(): # 注册验证
name,a,a1=app_reg.get_input()
if name=="" or a=="" or a1=="":
messagebox.showwarning("警告","请输入完整信息")
elif name in users:
messagebox.showwarning("警告","用户名已存在")
def login(): # 登录验证
pass
......
("张三"123)
\ No newline at end of file
{"张三":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