Commit 545ca86e by BellCodeEditor

save project

parent 354136bf
Showing with 2 additions and 2 deletions
...@@ -9,11 +9,11 @@ while True: ...@@ -9,11 +9,11 @@ while True:
if name == username and password == userpassword: if name == username and password == userpassword:
print("登录成功!") print("登录成功!")
break break
if name != username: elif name != username:
print("用户名错误") print("用户名错误")
continue continue
print("温馨提示:您还有"+str(i)+"次机会") print("温馨提示:您还有"+str(i)+"次机会")
if password != userpassword: else:
print("密码错误") print("密码错误")
print("温馨提示:您还有"+str(i)+"次机会") print("温馨提示:您还有"+str(i)+"次机会")
else: else:
......
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