Commit 0f920654 by BellCodeEditor

save project

parent 91dab164
Showing with 13 additions and 12 deletions
username = "python" name = "python"
userpassword = "123456" d = "12345"
while True: while True:
name = input("请输入用户名:") name1 = input("请输入用户名")
password = input("请输入密码:") d1 = input("请输入密码")
if name == username and password == userpassword: if name1 == name and d1 == d:
print("登录成功!") print("登陆成功")
break break
if name != username: if name1 != name :
print("用户名输入错误,请重新输入!") print("用户名输入错误")
if password != userpassword: continue
print("密码输入错误,请重新输入!") if d1 != d :
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