Commit 6e8874f3 by BellCodeEditor

save project

parent 43edea4b
Showing with 6 additions and 0 deletions
...@@ -7,6 +7,7 @@ while True: ...@@ -7,6 +7,7 @@ while True:
name = input("请输入用户名:") name = input("请输入用户名:")
if name != username: if name != username:
print("用户名错误") print("用户名错误")
print("还有"+str(i)+"次机会")
continue continue
password = input("请输入密码:") password = input("请输入密码:")
if name == username and password == userpassword: if name == username and password == userpassword:
...@@ -15,6 +16,11 @@ while True: ...@@ -15,6 +16,11 @@ while True:
if password != userpassword: if password != userpassword:
print("密码错误") print("密码错误")
print("还有"+str(i)+"次机会")
else: else:
print("sb!不知道密码就滚!") print("sb!不知道密码就滚!")
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