Commit ffdb5b9f by BellCodeEditor

save project

parent 18ae74ff
Showing with 3 additions and 3 deletions
......@@ -20,7 +20,7 @@ def reg_to_login(): # 注册界面转登录界面
def register(): # 注册验证
name,p1,p2 = app_reg.get_input()
if name == "" or p1 == "" or p2 == "":
if not(name or p1 or p2):
messagebox.showerror("警告","没填全")
elif p1 != p2:
messagebox.showerror("警告","密码不一致")
......
{"admin": "123456", "a": "1", "b": "2"}
\ No newline at end of file
{"admin": "123456", "a": "1", "b": "2", "0": "0"}
\ 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