Commit 1de2e35e by BellCodeEditor

save project

parent 5c9b87bd
Showing with 22 additions and 0 deletions
i=3
a="wd"
b="0616"
while True:
if i >0:
name=input("请输入用户名:")
password=input("请输入密码:")
i-=i
if name==a and password==b:
print("登录成功!")
break
if name!=a:
print("用户名错误,请重新输入!")
print("温馨提示:你还有"+str(i)+"次登录机会——")
continue
if password!=b:
print("密码输入有误,请重新输入!")
print("温馨提示:你还有"+str(i)+"次登录机会——")
else:
print("温馨提示:请100年后再来试试,祝您身体健康——")
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