Commit cdef6643 by BellCodeEditor

save project

parent 473e38a5
Showing with 17 additions and 7 deletions
i=3
username="泽塔奥特曼"
userpassword="泽塔奥特曼泽塔奥特曼"
while True:
a=input("请输入账号")
bb=input("请输入解锁密码")
if username == a and userpassword == bb :
print("欢迎来到贝尔编程")
break
if i>0:
a=input("请输入账号")
bb=input("请输入解锁密码")
i-=1
if username == a and userpassword == bb :
print("yes")
break
if a!=username:
print("no,请重新输入账号")
continue
if bb!=userpassword:
print("请输入账号")
else:
print("登录失败")
\ No newline at end of file
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