Commit eb488f43 by BellCodeEditor

auto save

parent ef808f44
Showing with 39 additions and 10 deletions
i =3
username="python"
userpassword="123456"
while True
if i>0:
name=inport("请竖炉用户名")
password=inport("请竖炉密码")
i-=i
if name == username and password == userpassword:
print("扥鲁成公")
break
if name != username
print("用户名错误,重输")
continue
if password!=userpassword:
print("密码错误,重输")
print("你还有+str(i)+次机会")
else
print("账号锁定,一小时后重输")
exit()
print("欢迎来到贝尔")
\ No newline at end of file
username = "python"
userpassword = "123456"
i =3
username="python"
userpassword="123456"
while True:
name = input("请输入用户名:")
password = input("请输入密码:")
if i>0:
name=inport("请竖炉用户名")
password=inport("请竖炉密码")
i-=i
if name == username and password == userpassword:
print("登录成功!")
print("扥鲁成公")
break
if name != username:
print("用户名不存在")
print("用户名错误,重输")
continue
if password != userpassword:
print("密码错误")
print("欢迎来到贝尔编程!")
\ No newline at end of file
if password!=userpassword:
print("密码错误,重输")
print("你还有+str(i)+次机会")
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