Commit ae597756 by BellCodeEditor

save project

parent 4765894f
Showing with 17 additions and 8 deletions
username="python"
userpassword="123456"
i=3
while True:
name=input("enter your name:")
password=input("enter your password:")
if name==username and password==userpassword:
print("welcome")
break
if name!=username:
print("name error")
if i>0:
name=input("enter your name:")
password=input("enter your password:")
if name==username and password==userpassword:
print("welcome")
break
if name!=username:
print("name error")
i-=1
continue
if password!=userpassword:
print("password error")
i-=1
else:
for a in range(5):
print("傻逼,滚!!!")
exit()
\ 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