Commit 5979da78 by BellCodeEditor

save project

parent f5d669dc
Showing with 3 additions and 4 deletions
...@@ -6,11 +6,10 @@ while True: ...@@ -6,11 +6,10 @@ while True:
if name == username and password == userpassword: if name == username and password == userpassword:
print("登录成功!") print("登录成功!")
break break
#用户名不正确 elif name != username:
if name != username:
print("用户名不正确") print("用户名不正确")
#密码不正确 else:
if password != userpassword:
print("密码不正确") print("密码不正确")
print("欢迎来到贝尔编程!") print("欢迎来到贝尔编程!")
continue continue
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