Commit 8bf0d79a by BellCodeEditor

save project

parent 5c9b87bd
Showing with 22 additions and 0 deletions
i=3
a = "python"
b = "123456"
while True:
if i>0:
aa = input("账号")
bb = input("密码")
i-=1
if a == aa and b == bb:
print("登录成功")
break
if a != aa:
print("用户名错误,请重新输入!")
print("温馨提示:您还有"+str(i)+"次登录机会!")
continue
if b != bb:
print("密码错误,请重新输入!")
print("温馨提示:您还有"+str(i)+"次登录机会!")
else:
print("账户已锁定!")
exit()
\ 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