Commit effbf642 by BellCodeEditor

save project

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