Commit 63ec60c7 by BellCodeEditor

save project

parent 1a64062a
Showing with 4 additions and 1 deletions
...@@ -11,7 +11,10 @@ while True: ...@@ -11,7 +11,10 @@ while True:
if name==username and password==userpassword: if name==username and password==userpassword:
print("欢迎登陆") print("欢迎登陆")
break break
if name!=username:
print("用户名错误,请重新输入!")
elif password!=userpassword:
print("密码错误,请重新输入密码!")
else: else:
print("登陆错误") 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