Commit 6ca9c6b0 by BellCodeEditor

save project

parent 3220ba49
Showing with 16 additions and 9 deletions
i=3
username = "python" username = "python"
userpassword = "123456" userpassword = "123456"
while True: while True:
name=input("请输入账号") if i>0:
name2=input("密码") name=input("请输入账号")
if name==username and name2==userpassword: name2=input("密码")
print("成功") i-=1
break if name==username and name2==userpassword:
elif name != username: print("成功")
print("账号错误") break
else: elif name != username:
print("密码错误") print("账号错误")
else:
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