Commit c8257d15 by BellCodeEditor

save project

parent 57cdf526
Showing with 19 additions and 11 deletions
i=3
username = "科比" username = "科比"
userpassword = "54188" userpassword = "54188"
while True: while True:
name=input("你的名字叫什么啊:") if i> 0:
password=input("你的密码是什么啊:") name=input("你的名字叫什么啊:")
if name == username and password == userpassword: password=input("你的密码是什么啊:")
print("登录成功!") i-=1
break if name == username and password == userpassword:
if username != name: print("登录成功!")
print("用户名输入错误,请重新输入") break
continue if name != username:
if userpassword != password: print("用户名输入错误,请重新输入!")
print("用户密码错误!请重新输入") print("温馨提示你还有"+str(i))
continue
if password != userpassword:
print("用户密码错误,请重新输入!")
print("温馨提示你还有+str(i)+次")
else:
print("你的账号已锁定,请到我司办理")
exit()
print("欢迎来到贝尔编程!") print("欢迎来到贝尔编程!")
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