Commit 6c36ac0a by BellCodeEditor

save project

parent 6b2371ff
Showing with 8 additions and 2 deletions
i=0
username = "python"
userpassword = "123456"
while True:
if i>0:
a = input("请输入用户名:")
b = input("请输入密码:")
i-=1
if a == username and b == userpassword:
print("登录成功!")
break
else:
if a !=username:
print("账号输入错误")
continue
elif b !=userpassword:
if b !=userpassword:
print("密码输入错误")
else:
print("你的账号已锁定,请带身份证来我司解锁")
exit()
\ 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