Commit 81aa592d by BellCodeEditor

save project

parent 76217ff6
Showing with 17 additions and 11 deletions
usename = "python"
i=3
i=3
usename = "python"
userpassword = "123456"
while True:
a=input("你的账号是啥子?")
b=input("你的密码是啥子?")
if a==usename and b==userpassword:
print("正确")
break
if a != usename:
print("账号登录失败")
continue
if b != userpassword:
print("密码登录失败")
if i>0:
a=input("你的账号是啥子?")
b=input("你的密码是啥子?")
i-=1
if a==usename and b==userpassword:
print("正确")
break
if a != usename:
print("账号登录失败")
continue
if b != userpassword:
print("密码登录失败")
else:
print("你的账号输入错误,你的钱没了")
exit()
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