Commit 6ca9c6b0 by BellCodeEditor

save project

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