Commit b1673aad by BellCodeEditor

save project

parent 60326c55
Showing with 14 additions and 10 deletions
i=3
a="python"
b="12345"
while True:
n=input("用户名:")
p=input("密码:")
if n==a and p==b:
print("成功!")
break
if n != a:
print("名错误!")
continue
if p != b:
print("码错误!")
if i>0:
n=input("用户名:")
p=input("密码:")
i=-1
if n==a and p==b:
print("成功!")
break
if n != a:
print("名错误!")
continue
if p != b:
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