Commit e34561ee by BellCodeEditor

save project

parent e0484a32
Showing with 3 additions and 0 deletions
...@@ -12,11 +12,14 @@ while True: ...@@ -12,11 +12,14 @@ while True:
i-=1 i-=1
if name !=username: if name !=username:
print("账户错误") print("账户错误")
print("您还有"+str(i)+"此输入机会")
continue continue
if passord != userpassword: if passord != userpassword:
print("密码错误") print("密码错误")
print("您还有"+str(i)+"此输入机会")
else: else:
print("登录成功") print("登录成功")
break
else: else:
print("你的账户已被锁定。") print("你的账户已被锁定。")
exit() 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