Commit 7004ef66 by BellCodeEditor

save project

parent 496d3fa0
Showing with 9 additions and 10 deletions
username = "SB" username = "张三"
userpassword = "114514" userpassword = "123456789"
while True: while True:
name = input("输入名子") name = input("请输入用户名")
password = input("输入密码") password = input("输入密码")
if name == username and password == userpassword: if name == username and password == userpassword:
print("成功!") print("登录成功!")
break break
if name != username: if name != username:
print("你名错了!") print("用户名不存在,请重新输入! ")
continue
if password != userpassword: if password != userpassword:
print("你码死了!") print("密码输入错误,请重新输入!")
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