Commit a474fc69 by BellCodeEditor

save project

parent 2219bd06
Showing with 4 additions and 1 deletions
...@@ -6,7 +6,10 @@ while True: ...@@ -6,7 +6,10 @@ while True:
if name==username and password==userpassword: if name==username and password==userpassword:
input("登陆成功") input("登陆成功")
break break
input("用户名和密码错误,请输入正确密码") if name != username:
input("用户名不存在,请输入正确账号")
if password != userpassword:
input("密码错误,请输入正确密码")
input("欢迎来到贝尔编程") input("欢迎来到贝尔编程")
# 请用input()实现用户输入账号、密码的功能 # 请用input()实现用户输入账号、密码的功能
......
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