Commit f7b61604 by BellCodeEditor

save project

parent 10224b3b
Showing with 9 additions and 2 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) i=3
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
while True: while True:
if i>0:
username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456"
i=i-1
username1=input('请输入用户名') username1=input('请输入用户名')
userpassword1=input('请输入密码') userpassword1=input('请输入密码')
if username==username1 and userpassword==userpassword1: if username==username1 and userpassword==userpassword1:
...@@ -10,6 +13,9 @@ while True: ...@@ -10,6 +13,9 @@ while True:
print('用户名不存在,请重新输入') print('用户名不存在,请重新输入')
if userpassword!=userpassword1: if userpassword!=userpassword1:
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