Commit f59114e1 by BellCodeEditor

save project

parent c402327c
Showing with 7 additions and 2 deletions
i = 5 i = 3
username = "LuoXu20081102" username = "LuoXu20081102"
userpassword ="123456" userpassword ="123456"
while True: while True:
...@@ -10,10 +10,14 @@ while True: ...@@ -10,10 +10,14 @@ while True:
break break
if username != name: if username != name:
print("没你这个账号") print("没你这个账号")
i = i-1
print("只有"+str(i)+"次机会了")
continue continue
if userpassword != password: if userpassword != password:
print("密码不对") print("密码不对")
i = i-1
print("只有"+str(i)+"次机会了")
else: else:
print("锁定...") print("锁定...")
exit exit()
print("冠城七中需要你这样的人才") 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