Commit 0e737b44 by BellCodeEditor

save project

parent c445b51b
Showing with 19 additions and 4 deletions
i=3
x="abcde" x="abcde"
y=54188 y=54188
while True: while True:
w=input("输入账号:") w=input("输入账号:")
z=input("输入密码:") z=input("输入密码:")
if w==x and z==y: if i != 1:
print("登录成功") if w==x and z==y:
break print("登录成功")
print("登录失败") break
if w != x:
print("账号错误")
i-=1
print("还有"+str(i)+"次机会")
continue
if z != y:
print("账号错误")
i-=1
print("还有"+str(i)+"次机会")
continue
else:
print("登录失败,已锁!")
exit()
print("欢迎") 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