Commit c524c661 by BellCodeEditor

save project

parent 284d5296
Showing with 2 additions and 0 deletions
...@@ -7,8 +7,10 @@ while True: ...@@ -7,8 +7,10 @@ while True:
password = input("请输入密码:") password = input("请输入密码:")
if name == username and password == userpassword: if name == username and password == userpassword:
print("登录成功!") print("登录成功!")
i=i-1
break break
print("用户和密码错误") print("用户和密码错误")
print("还有:"+str(i))
if name != username: if name != username:
print("用户不存在") print("用户不存在")
continue continue
......
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