Commit 14564b09 by BellCodeEditor

save project

parent 9f6e6b79
Showing with 2 additions and 5 deletions
......@@ -11,15 +11,12 @@ while True:
if name!=username:
print("用户名错误,请重新输入")
i-=1
print("您还有"+str(i)+"次登陆机会")
continue
print("您还有i次登陆机会")
if password!=userpassword:
print("密码错误,请重新输入")
i-=1
if i==2:
print("您还有2次登陆机会")
if i==1:
print("您还有1次登陆机会")
print("您还有"+str(i)+"次登陆机会")
else:
print("账户已锁定")
exit()
......
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