Commit 73d1bcf8 by BellCodeEditor

save project

parent b810c294
Showing with 29 additions and 0 deletions
username="xxx"
userpassward="123"
i=3
while True:
if i>0:
name=input("请输入您的账号:")
if name != username:
print("输入错误")
i=i-1
print("您还有"+str(i)+"次机会!")
continue
passward=input("请输入您的密码:")
i=i-1
if passward != userpassward:
print("您的密码输入错误,请重新输入!")
print("您还有"+str(i)+"次机会!")
continue
if name==username and passward==userpassward:
print("登录成功!")
break
else:
print("您的账户已被锁定,请待身份证来我司解锁")
exit()
print("欢迎来到快乐星球!")
# time.sleep(1)
# while True:
# print("什么是快乐星球?")
# time.sleep(0.1)
\ 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