Commit 4aabddb0 by BellCodeEditor

save project

parent 886c5edc
Showing with 21 additions and 7 deletions
username = "爸爸" i=3
userpassword = "54188" username = " "
name = input("请输入用户名:") userpassword = " "
password = input("请输入密码:") while True:
if name == username and password == userpassword: if i>0:
print("成功") name = input("请输入用户名:")
\ No newline at end of file password = input("请输入密码:")
i-=1
if name == username and password == userpassword:
print("成功")
break
if name!= username:
print("用户名错误!给我重输!")
continue
if password!= userpassword:
print("用户密码错误!给我重输!")
else:
print("joker,账号已锁定,两年半后解锁")
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