Commit 9edeafc3 by BellCodeEditor

save project

parent c99964ed
Showing with 6 additions and 3 deletions
...@@ -5,8 +5,10 @@ while True: ...@@ -5,8 +5,10 @@ while True:
b=input("请输入用户密码:") b=input("请输入用户密码:")
if a==username and b==userpassword: if a==username and b==userpassword:
print("密码正确,登陆成功") print("登陆成功")
break break
else: if a!=username:
print("密码错误,登陆失败") print("户名错误,请重新输入")
if b!=userpassword:
print("密码错误,请重新输入")
print("欢迎来到贝尔编程") 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