Commit 964443de by BellCodeEditor

save project

parent 9bf90d66
Showing with 4 additions and 3 deletions
...@@ -5,7 +5,7 @@ while True: ...@@ -5,7 +5,7 @@ while True:
if i>0: if i>0:
name=input("请输入账号") name=input("请输入账号")
password=input("请输入密码") password=input("请输入密码")
i-=i i-=1
if username == name and password == userpassword: if username == name and password == userpassword:
print("登陆成功") print("登陆成功")
break break
...@@ -13,6 +13,7 @@ while True: ...@@ -13,6 +13,7 @@ while True:
print("账号输入错误") print("账号输入错误")
elif userpassword != password: elif userpassword != password:
print("密码输入错误") print("密码输入错误")
else else:
print("你已被锁定")
exit()
print("欢迎来到贝尔编辑器") print("欢迎来到贝尔编辑器")
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