Commit 6e3b6069 by BellCodeEditor

save project

parent 69976058
Showing with 4 additions and 2 deletions
...@@ -6,9 +6,11 @@ userpassword = input("请输入用户密码") ...@@ -6,9 +6,11 @@ userpassword = input("请输入用户密码")
if username == "python" or userpassword == "123456": if username == "python" or userpassword == "123456":
pass print("登陆成功") pass print("登陆成功")
break break
print("欢饮来到贝尔星球")
if name is username: if name is username:
print("用户名不存在,请重新输入!") print("用户名不存在,请重新输入!")
continue
if password is userpassword: if password is userpassword:
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