Commit f494d497 by BellCodeEditor

save project

parent 1bf4da97
Showing with 20 additions and 9 deletions
username = "python" a="666"
userpassword = "123456" b="110924"
e=3
while True: while True:
name = input("请输入用户名:") if e>0:
password = input("请输入密码:") c=input("请输入账号名:")
if name == username and password == userpassword: d=input("请输入账号密码:")
print("登录成功!") e=e-1
print("用户名和密码错误!请重新输入") if a==c and b==d:
print("欢迎来到贝尔编程!") print("登录成功")
\ No newline at end of file break
elif a != c:
print("登录失败,请重新输入账号")
else:
print("登录失败,请重新输入密码")
else:
print("你的账号已被锁定")
break
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