Commit 87d2a3b6 by BellCodeEditor

save project

parent 563c31fd
Showing with 13 additions and 9 deletions
username = "python" username = "3"
userpassword = "123456" userpassword = "10203040506070809090807060504030201024680"
while True: while True:
name = input("请输入用户名:") a = input("请输入用户名:")
password = input("请输入密码:") b = input("请输入密码:")
if name == username and password == userpassword: if a == username and b == userpassword:
print("登录成功!")
break break
if name!=username: print("登录成功!")
else:
pass
if a!=username:
print("用户名和密码错误!请重新输入") print("用户名和密码错误!请重新输入")
if password!=userpassword: continue
if a !=userpassword:
print("账号错") print("账号错")
if password!=username: if b != userpassword:
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