Commit 21756a31 by BellCodeEditor

save project

parent e4d514c3
Showing with 23 additions and 0 deletions
username = "python"
userpasswd = "123456"
i = 3
while True:
if i > 0:
user = input("请你输入用户名")
passwd = input("请你输入密码")
i -= 1
if user == username and userpasswd == passwd:
print("验证成功")
break
elif user != username:
print("账号错误")
print("温馨提示;您还剩下"+str(i)+"次机会")
continue
else:
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