Commit a5828047 by BellCodeEditor

save project

parent c819585c
Showing with 43 additions and 0 deletions
a="python"
b="123456"
c=5
while True:
print("你还有"+str(c)+"次机会")
if c==0:
print("限制登陆")
break
name=input("请输入名字:")
passward=input("请输入密码:")
c-=1
if name==a and passward==b:
print("成功")
print("欢迎来到贝尔编程")
break
if name != a:
print("用户名错误!请重新输入")
continue
if passward != b:
print("密码错误!请重新输入")
continue
a="python"
b="123456"
c=5
while True:
print("你还有"+str(c)+"次机会")
if c==0:
print("限制登陆")
break
name=input("请输入名字:")
passward=input("请输入密码:")
c-=1
if name==a and passward==b:
print("成功")
print("欢迎来到贝尔编程")
break
if name != a:
print("用户名错误!请重新输入")
continue
if passward != b:
print("密码错误!请重新输入")
continue
\ 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