Commit da3d106f by BellCodeEditor

save project

parent a3ddc6f6
Showing with 21 additions and 21 deletions
......@@ -2,28 +2,28 @@ o="天下无敌"
p="123456"
#w=input("你的名字是什么")
#i=input('你的密码是什么?')
m=0
while True:
w=input("你的名字是什么")
i=input('你的密码是什么?')
m=1
def u ():
while True:
w=input("你的名字是什么")
i=input('你的密码是什么?')
if o==w and p==i:
print("成功登录")
break
elif o != w :
print("用户名输入错误,请重新输入")
else :
print('密码输入错误,请重新输入')
#print("用户名或密码输入错误,请重新输入")
m=m+1
if m>3:
print('连续三次输入错误。拒绝登录')
break
if o==w and p==i:
print("成功登录")
break
elif o != w :
print("用户名输入错误,请重新输入")
else :
print('密码输入错误,请重新输入')
#print("用户名或密码输入错误,请重新输入")
m=m+1
if m>3:
print('连续三次输入错误。拒绝登录')
break
if o==w and p==i:
print("欢迎来到编程器")
else:
print("去警察局")
print("欢迎来到编程器")
else:
print("去警察局")
print(u)
......
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