Commit 769244fc by BellCodeEditor

save project

parent 4ce966e1
Showing with 24 additions and 0 deletions
n = "python"
p = "123456"
T = 3
while T > 0:
print("你还有"+ str(T) + "次机会")
n1 = input("请输入账号:")
p1 = input("请输入密码")
if(p1 == p and n1 == n):
print("欢迎登陆进来!")
break
elif(p1 != p and n1 == n):
pass
elif(p1 != p and n1 != n):
print("账号和密码错误!")
else:
print("账号错误!")
T-=1
if (T>0):
print("欢迎登陆进来!")
else:
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