Commit a2d7cffd by BellCodeEditor

save project

parent a94da44e
Showing with 7 additions and 2 deletions
...@@ -6,5 +6,9 @@ while True: ...@@ -6,5 +6,9 @@ while True:
if username==name and userpassword==password: if username==name and userpassword==password:
print("登陆成功!") print("登陆成功!")
break break
else: if username!=name and userpassword==password:
print("登陆失败,请重新输入账户和密码!") print("账户名错误,请重新输入账户名!")
if userpassword!=password and username==name:
print("密码错误,请重新输入密码!")
if username!=name and userpassword!=password:
print("账户名和密码都错误错误,请重新输入账户名和密码!")
\ 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