Commit da3d106f by BellCodeEditor

save project

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