Commit 1eb9e8c3 by BellCodeEditor

save project

parent 7431aa1a
Showing with 5 additions and 3 deletions
i=3 i=2
username = "zheng" username = "zheng"
userpassword = "245418" userpassword = "245418"
while True: while True:
...@@ -10,11 +10,13 @@ while True: ...@@ -10,11 +10,13 @@ while True:
break break
if n != username: if n != username:
print("用户名出错") print("用户名出错")
print("还有"+i+"次机会") print("还有",i,"次机会")
i-=1
continue continue
if m !=userpassword: if m !=userpassword:
print("密码出错") print("密码出错")
print("还有"+i+"次机会") print("还有",i,"次机会")
i-=1
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