Commit 7004ef66 by BellCodeEditor

save project

parent 496d3fa0
Showing with 9 additions and 10 deletions
username = "SB"
userpassword = "114514"
username = "张三"
userpassword = "123456789"
while True:
name = input("输入名子")
password = input("输入密码")
name = input("请输入用户名")
password = input("输入密码")
if name == username and password == userpassword:
print("成功!")
print("登录成功!")
break
if name != username:
print("你名错了!")
print("用户名不存在,请重新输入! ")
continue
if password != userpassword:
print("你码死了!")
print("请重新输入")
print("欢迎来到快乐星球!")
\ No newline at end of file
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