Commit 74c2f9f8 by BellCodeEditor

save project

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