Commit 5209598e by BellCodeEditor

save project

parent 5fe95db5
Showing with 9 additions and 0 deletions
a="abc" a="abc"
b="123" b="123"
i=3
while True: while True:
if i>0:
c=input("名字:") c=input("名字:")
i-=1
if a!=c: if a!=c:
print("名字错误") print("名字错误")
continue continue
print("还有"+i+"次")
d=input("密码:") d=input("密码:")
if a==c and b==d: if a==c and b==d:
...@@ -12,4 +16,8 @@ while True: ...@@ -12,4 +16,8 @@ while True:
break break
if b!=d: if b!=d:
print("密码错误") print("密码错误")
print("还有"+i+"次")
else:
print("您的次数以全部用完")
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