Commit 12a18daf by BellCodeEditor

save project

parent 01f58358
Showing with 5 additions and 3 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
......@@ -29,7 +31,7 @@ def register(): # 注册验证
with open('users.text','w',encoding='utf-8') as flie:
flie.write(content)
messagebox.showinfo('完成','信息保存成功!')
login_show()
reg_to_login()
def login(): # 登录验证
pass
......
{"admin": "123456", "dsa": "123"}
\ No newline at end of file
{"admin": "123456", "as": "as"}
\ 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