Commit 7eab41f6 by BellCodeEditor

auto save

parent 60b8de4d
Showing with 5 additions and 5 deletions
i=5
username = "qazxcv"
userpassword = "102938"
zqzh="qpwoei"
zqmm="102938"
while True:
if i>0:
zh=input("请输入您的账号:")
mm=input("请输入您的密码:")
i-=1
if zh==username and mm==userpassword:
if zh==zqzh and mm==zqmm:
print("登陆成功!")
break
if zh!=username:
if zh!=zqzh:
print("账号不存在!请重新输入!")
print("温馨提示:您还有"+str(i)+"次输入机会!")
continue
if mm!=userpassword:
if mm!=zqmm:
print("密码输入有误!请重新输入!")
print("温馨提示:您还有"+str(i)+"次输入机会!")
else:
......
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