Commit 7eab41f6 by BellCodeEditor

auto save

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