Commit 18d51c6f by BellCodeEditor

save project

parent 15360631
Showing with 19 additions and 12 deletions
i = 3
username = "python"
userpassword = "123456"
while True:
name = input("请输入用户名:")
password = input("请输入密码:")
if name == username and password == userpassword:
print("登录成功!")
break
if name != username:
print("焯,用户名萎了")
elif password != userpassword:
print("输得这么彻底,密码废了")
print("给你脸了!")
\ No newline at end of file
while True:
while True:
if i>0:
name = input("请输入用户名:")
password = input("请输入密码:")
i-=1
if name == username and password == userpassword:
print("登录成功!")
break
if name != username:
print("焯,用户名萎了")
continue
if password != userpassword:
print("输得这么彻底,密码废了")
else:
print("焯,好不容易编一次程,你却让我输得这么彻底")
exit()
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