Commit effbf642 by BellCodeEditor

save project

parent 1bf4da97
Showing with 23 additions and 9 deletions
username = "python" z = "1"
userpassword = "123456" m = "2"
i = 3
while True: while True:
name = input("请输入用户名:") if i>0:
password = input("请输入密码:") z1=input("请输入账号:")
if name == username and password == userpassword: m1=input("请输入密码:")
print("登录成功!") i = i-1
print("用户名和密码错误!请重新输入") if z == z1 and m == m1:
print("欢迎来到贝尔编程!") print("登录成功")
\ No newline at end of file break
if z != z1:
print("账号错误")
print("你还有"+str(i)+"次机会")
continue
if m != m1:
print("密码错误")
print("你还有"+str(i)+"次机会")
continue
else:
print("你的账号已锁定")
exit()
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