Commit 3fdd0985 by BellCodeEditor

save project

parent ef9790ff
Showing with 21 additions and 2 deletions
username = "python" username = "lyh"
userpassword = "123456" userpassword = "lyh110704"
cout=0
while True:
username1=input("输入账号")
password1=input("输入密码")
cout=cout+1
print("输入次数:",cout)
if cout<3:
if username==username1:
if userpassword==password1:
print("欢迎登录")
break
else:
print("密码错误,请重新输入")
else:
print("用户名不存在,请重新输入")
else:
print("请等待3秒后再尝试")
break
print("欢迎"+username1+"来到腾讯QQ")
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