Commit 3b553e23 by BellCodeEditor

save project

parent 39a73bed
Showing with 4 additions and 0 deletions
name1="pl"
word1="123344"
i=3
while True:
if i>0:
name=input("请输入名字")
......@@ -10,8 +11,10 @@ while True:
break
if name != name1:
print("用户名错误,请重新输入!")
print("你还有"+str(i)+"次机会")
continue
if word != word1:
print("密码错误,请重新输入!")
print("你还有"+str(i)+"次机会")
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