Commit 886348e6 by BellCodeEditor

save project

parent d007b0a5
Showing with 2 additions and 0 deletions
...@@ -4,9 +4,11 @@ while True: ...@@ -4,9 +4,11 @@ while True:
q=input("请输入用户名") q=input("请输入用户名")
w=input("请输入密码") w=input("请输入密码")
if a==q and b==w: if a==q and b==w:
print("登录成功")
break break
if a!=q and b==w: if a!=q and b==w:
print("用户名错误,请重新输入") print("用户名错误,请重新输入")
continue
if a==q and b!=w: if a==q and b!=w:
print("密码错误,请重新输入") print("密码错误,请重新输入")
if a!=q and b!=w: if a!=q and b!=w:
......
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