Commit b3824609 by BellCodeEditor

save project

parent 0817fcfd
Showing with 7 additions and 2 deletions
i=3
t = "pig" t = "pig"
y = "345" y = "345"
while True: while True:
if i>0:
u =input("用户名:") u =input("用户名:")
k = input("密码:") k = input("密码:")
i-=1
if u==t and k==y: if u==t and k==y:
print("成功") print("成功")
break break
...@@ -10,5 +13,7 @@ while True: ...@@ -10,5 +13,7 @@ while True:
print("用户名不正确") print("用户名不正确")
if u==t and k!=y: if u==t and k!=y:
print("密码不正确") print("密码不正确")
else:
print("肖恩马上到你家门口")
exit()
print("成功") print("成功")
\ No newline at end of file
\ 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