Commit 6cb6624d by BellCodeEditor

save project

parent f6b785e8
Showing with 16 additions and 6 deletions
i=3
username = "python" username = "python"
userpassword="123456" userpassword="123456"
while True: while True:
shuruname =input("请输入用户名:") if i>0:
shurpwd = input("请输入密码:") shuruname =input("请输入用户名:")
if shuruname == username and shuruname == userpassword shurpwd = input("请输入密码:")
print("登录成功!") i-=1
else if shuruname == username and shuruname == userpassword:
print("密码错误!") print("登录成功!")
break
elif shuruname != username:
print("用户错误!")
else:
print("密码错误")
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