Commit f7b61604 by BellCodeEditor

save project

parent 10224b3b
Showing with 18 additions and 11 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) i=3
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
while True: while True:
username1=input('请输入用户名') if i>0:
userpassword1=input('请输入密码') username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
if username==username1 and userpassword==userpassword1: userpassword = "123456"
print('登录成功') i=i-1
break username1=input('请输入用户名')
if username!=username1: userpassword1=input('请输入密码')
print('用户名不存在,请重新输入') if username==username1 and userpassword==userpassword1:
if userpassword!=userpassword1: print('登录成功')
print('密码错误,请重新输入') break
if username!=username1:
print('用户名不存在,请重新输入')
if userpassword!=userpassword1:
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