Commit 7ea8cc05 by BellCodeEditor

save project

parent 2b2e5267
Showing with 14 additions and 1 deletions
......@@ -2,6 +2,7 @@ o="天下无敌"
p="123456"
#w=input("你的名字是什么")
#i=input('你的密码是什么?')
m=0
while True:
w=input("你的名字是什么")
i=input('你的密码是什么?')
......@@ -10,11 +11,23 @@ while True:
break
if o != w :
print("用户名输入错误,请重新输入")
continue
if p!=i:
print('密码输入错误,请重新输入')
#print("用户名或密码输入错误,请重新输入")
m=m+1
if m>3:
print('连续三次输入错误。拒绝登录')
break
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