Commit 52dd953f by BellCodeEditor

save project

parent bb7bd713
Showing with 9 additions and 11 deletions
...@@ -6,17 +6,15 @@ while True: ...@@ -6,17 +6,15 @@ while True:
name = input("请输入用户名:") name = input("请输入用户名:")
password = input("请输入密码:") password = input("请输入密码:")
i-=0 i-=0
if name == username and password == userpassword: if name == username and password == userpassword:
print("登录成功!") print("登录成功!")
break break
if name!=username: if name!=username:
print("账号不存在") print("账号不存在")
continue continue
print("温馨提示你还有"+str(i)+"次机会") if name!=userpassword:
if name!=userpassword: print("密码错误")
print("密码错误") continuerr
continue
print("温馨提示你还有"+str(i)+"次机会")
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