Commit 74c2f9f8 by BellCodeEditor

save project

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