Commit 6ca9c6b0 by BellCodeEditor

save project

parent 3220ba49
Showing with 7 additions and 0 deletions
i=3
username = "python" username = "python"
userpassword = "123456" userpassword = "123456"
while True: while True:
if i>0:
name=input("请输入账号") name=input("请输入账号")
name2=input("密码") name2=input("密码")
i-=1
if name==username and name2==userpassword: if name==username and name2==userpassword:
print("成功") print("成功")
break break
...@@ -10,4 +13,7 @@ while True: ...@@ -10,4 +13,7 @@ while True:
print("账号错误") print("账号错误")
else: else:
print("密码错误") print("密码错误")
else:
print("账户锁定,请来我这解决")
exit()
print("欢迎来到贝儿") print("欢迎来到贝儿")
\ No newline at end of file
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