Commit bb251d78 by BellCodeEditor

save project

parent 3fa6e33c
Showing with 5 additions and 3 deletions
...@@ -2,10 +2,11 @@ i=3 ...@@ -2,10 +2,11 @@ i=3
username="python" username="python"
userpassword="123567" userpassword="123567"
while True: while True:
if i>0: if i>0:
name=input("名字") name=input("名字")
continue continue
password=input("密码") password=input("密码")
i=i-1
if name==username and password==userpassword if name==username and password==userpassword
print("成功") print("成功")
break break
...@@ -14,7 +15,8 @@ if i>0: ...@@ -14,7 +15,8 @@ if i>0:
print("错") print("错")
if username!=password: if username!=password:
print("错") print("错")
print("fenfen") else:
exet print("账号锁定")
exit
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