Commit 4aabddb0 by BellCodeEditor

save project

parent 886c5edc
Showing with 20 additions and 5 deletions
username = "爸爸"
userpassword = "54188"
name = input("请输入用户名:")
password = input("请输入密码:")
if name == username and password == userpassword:
i=3
username = " "
userpassword = " "
while True:
if i>0:
name = input("请输入用户名:")
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