Commit d7edf140 by BellCodeEditor

save project

parent b9e54f9e
Showing with 14 additions and 7 deletions
username = "python" username = "python"
userpassword = "123456" userpassword = "123456"
i=3
while True: while True:
name = input() if i>0:
password = input() name = input()
if name != eusernam i-=1
print("账号错误!") password = input()
continue if name != username:
if password != eusernam print("账号错误!")
print("密码错误!请重新输入") continue
if password != userpassword:
print("密码错误!请重新输入")
else:
print("账号已被锁定,请拿身份证来我司解锁")
exit()
if name == username and notpassword == userpassword if name == username and notpassword == userpassword
print("欢迎来到贝尔编程!") print("欢迎来到贝尔编程!")
break break
\ 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