Commit 74c2f9f8 by BellCodeEditor

save project

parent 41b1915f
Showing with 19 additions and 10 deletions
username = "python" username = "python"
userpassword = "123456" userpassword = "123456"
i=3
while True: while True:
yourname=input("输入") if i>0:
yourpassword=input("输入密码") yourname=input("输入")
if username==yourname and userpassword==yourpassword: yourpassword=input("输入密码")
print("登录成功") i-=1
break if username==yourname and userpassword==yourpassword:
if username!=yourname: print("登录成功")
print("用户名错误!!!!!") break
continue if username!=yourname:
if userpassword!=yourpassword: print("用户名错误!!!!!")
print("密码!!!!!") print("您还有"+str(i)+"次机会")
continue
if userpassword!=yourpassword:
print("密码!!!!!")
print("您还有"+str(i)+"次机会")
else:
print("封号!!!!!!!!!!")
exit()
print("欢迎") print("欢迎")
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