Commit 4ed077ce by BellCodeEditor

save project

parent b8169cba
Showing with 29 additions and 11 deletions
......@@ -4,17 +4,34 @@ userpassword = "sb"
身高="151"
身份证="61052820131211361X"
密码="741216"
i=3
while True:
name=input("账号是啥:")
password=input("密码是啥:")
shengao=input("身高是啥:")
tizhong=input("体重是啥:")
shenfenzheng=input("身份证是啥:")
mima=input("密码是啥:")
if username==name and userpassword==password and 体重==tizhong and shengao==身高 and 身份证==shenfenzheng and mima==密码:
print("登录成功")
break
if i>0:
print("还剩"+str(i)+"次机会")
name=input("账号是啥:")
password=input("密码是啥:")
shengao=input("身高是啥:")
tizhong=input("体重是啥:")
shenfenzheng=input("身份证是啥:")
mima=input("密码是啥:")
i-=1
if username==name and userpassword==password and 体重==tizhong and shengao==身高 and 身份证==shenfenzheng and mima==密码:
print("登录成功")
break
if username!=name:
print("name错误")
elif userpassword!=passwor:
print("账号错误")
elif 体重!=tizhong:
print("体重错误")
elif shengao!=身高:
print("身高错误")
elif 身份证!=shenfenzheng:
print("身份证错误")
elif mima!=密码:
print("密码证错误")
# 保存在服务器数据库中的用户密码(正确的密码)
else:
print("登陆失败") # 保存在服务器数据库中的用户密码(正确的密码)
print("次数已用完")
exit()
print("欢迎来到地狱")
\ 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