Commit b13c8a2d by BellCodeEditor

save project

parent b236968b
Showing with 9 additions and 14 deletions
username = "陈一鸣" username = "陈一鸣"
userpassword = "2020" userpassword = "2020"
hacker=3
while True: while True:
name = input("请输入用户名:") name = input("请输入用户名:")
password = input("请输入密码:") password = input("请输入密码:")
hacker -=1 if name == username and password == userpassword:
if hacker>0: print("登录成功!")
if name == username and password == userpassword: break
print("登录成功!") if name != username:
break print("The account number is wrong.")
if name != username: continue
print("The account number is wrong.") if password != userpassword:
continue print("The password is incorrect.")
if password != userpassword:
print("The password is incorrect.")
else:
print("The account is locked out.")
exit()
print("欢迎来到贝尔编程!") 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