Commit e6f57a91 by BellCodeEditor

save project

parent b810c294
Showing with 23 additions and 0 deletions
i=3
a="123"
b="1234"
while True:
if i>0:
c=input("请输入")
d=input("请输入")
i=i-1
if a == c and b == d:
print("成功")
break
if a!=c:
print("账号错误")
print("还有"+str(i)+"次机会")
continue
if b!=d:
print("密码错误")
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