Commit 0383bd9c by BellCodeEditor

save project

parent e708bfa1
Showing with 21 additions and 11 deletions
sb=3
username = "py"
userpassword = "1"
while True:
name = input("请输入用户名:")
password = input("请输入密码:")
if name == username and password == userpassword:
print("登录成功!")
break
if name != username :
if sb>0 :
name = input("请输入用户名:")
password = input("请输入密码:")
sb-=1
if name == username and password == userpassword:
print("登录成功!")
break
if name != username :
print("sb")
print("sbsbsbsbsb"+str(sb)+"aaaaaa")
continue
if password != userpassword :
print("sb")
print("sbsbsbsbsb"+str(sb)+"aaaaaa")
continue
else:
print("sb")
continue
if password != userpassword :
print("sb")
continue
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