Commit 2af6c2c1 by BellCodeEditor

save project

parent 2f7ca8b4
Showing with 4 additions and 1 deletions
...@@ -6,7 +6,10 @@ while True: ...@@ -6,7 +6,10 @@ while True:
if a==username and b==userpassword : if a==username and b==userpassword :
print("登录成功") print("登录成功")
break break
print("密码错误,请重新登录") if a!=username:
print("用户名错误,请重新输入")
if b!=userpassword:
print("密码错误,请重新输入")
print("欢迎来到某某某") print("欢迎来到某某某")
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