Commit 3027aa24 by BellCodeEditor

save project

parent a5e12a64
Showing with 2 additions and 0 deletions
...@@ -10,8 +10,10 @@ while True: ...@@ -10,8 +10,10 @@ while True:
elif name!=username: elif name!=username:
i-=1 i-=1
print("用户名错误,请重新输入") print("用户名错误,请重新输入")
print("您只剩下"+str(i)+"次机会")
else: else:
print("密码错误请重新输入") print("密码错误请重新输入")
print("您只剩下"+str(i)+"次机会")
if i==0: if i==0:
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