Commit 6c36ac0a by BellCodeEditor

save project

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