Commit 481a59d6 by BellCodeEditor

save project

parent 27d1aaec
Showing with 20 additions and 12 deletions
username = "python" username = "options"
userpassword = "123456" userpassword = "onlyatext"
p = 3
while True: while True:
name = input("请输入用户名:") if p > 0
password = input("请输入密码:") name = input("请输入用户名:")
if name == username and password == userpassword: password = input("请输入密码:")
print("信息已验证") p-=1
break if name == username and password == userpassword:
if name != username: print("信息已验证")
print("× name ×") break
continue if name != username:
if password != userpassword: print("× name ×")
print("× password ×") continue
if password != userpassword:
print("× password ×")
else:
print("检测到输入尝试超过三次")
print("您的所在地已被锁定")
exit()
print("We Co To Be Co") print("We Co To Be Co")
\ 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