Commit 0060441c by BellCodeEditor

save project

parent b810c294
Showing with 23 additions and 0 deletions
i=3
Username='威廉'
Userpassword='52013143399'
while True:
if i > 0:
name = input("请输入用户姓名:")
password = input("请输入密码")
i -=1
if Username==name and Userpassword==password:
print("登录成功")
break
if name != Username:
print("用户名不正确,请重新输入")
print("温馨提示:你还有"+str(i)+"次机会")
continue
if password != Userpassword:
print("密码不正确,请重新输入")
print("温馨提示:你还有"+str(i)+"次机会")
else:
print("这个账号已被锁定,请交3个亿,再找威廉解锁")
exit()
print("欢迎来到威廉家地下室")
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