Commit 90c2d10f by BellCodeEditor

auto save

parent 5c9b87bd
Showing with 23 additions and 0 deletions
username = "python"
password = "123456"
i = 3
while True:
if i > 0:
u1 = input("请输入用户名")
p1 = input("请输入密码")
i -= 1
if username == u1:
if password == p1:
print("成功登录")
else:
print("密码错误")
if i >0:
print("请重新输入,还有"+str(i)+"次机会")
else:
print("用户名不存在")
print("请重新输入,还有"+str(i)+"次机会")
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