Commit f494d497 by BellCodeEditor

save project

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