Commit 83b2d611 by BellCodeEditor

save project

parent 0c5df8aa
Showing with 23 additions and 0 deletions
usrname="python"
usrpassword="123456"
i=3
while True:
if i>0
name=input("用户名:")
password=input("密码:")
i-=1
if name == usrname and password == usrpassword:
print("登录成功!")
break
if name != usrname:
print("用户名有误,重新输入")
print("提示:还有"+str(i)+"次机会")
continue
if password != usrpassword:
print("密码有误,重新输入")
else:
print("你的账户被锁定,24小时后再来")
exit()
print("欢迎")
\ No newline at end of file
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