Commit fa2366c7 by BellCodeEditor

save project

parent 3335125f
Showing with 3 additions and 1 deletions
......@@ -6,15 +6,17 @@ while True:
# 请用input()实现用户输入账号、密码的功能
name=input("请输入账号")
password=input("请输入密码")
i-=1
i-=1p
if (name==username) and (password==userpassword):
print("登陆成功")
break
if name != username:
print("账号错误!请从新输入")
print("您还有"+str(i)"次机会")
contiune
if password != userpassword:
print("密码错误!请从新输入")
print("您还有"+str(i)"次机会")
else:
print("账号已锁定")
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