Commit 0edee8c5 by BellCodeEditor

save project

parent d9075adf
Showing with 2 additions and 0 deletions
......@@ -6,6 +6,7 @@ while True:
name = input("请输入帐号")
if name != username :
print("帐号错误,请输入密码")
print("温馨提示:您还有"+str(i)+"次机会")
continue
password =input("请输入密码")
if name == username and password == userpassword:
......@@ -13,6 +14,7 @@ while True:
break
else:
print("密码错误,请重新输入")
print("温馨提示:您还有"+str(i)+"次机会")
i-=1
else:
print("错误次数超过限制,帐号已冻结")
......
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