Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson4_1
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4ed077ce
authored
Apr 01, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
b8169cba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
11 deletions
diy1.py
diy1.py
View file @
4ed077ce
...
@@ -4,17 +4,34 @@ userpassword = "sb"
...
@@ -4,17 +4,34 @@ userpassword = "sb"
身高
=
"151"
身高
=
"151"
身份证
=
"61052820131211361X"
身份证
=
"61052820131211361X"
密码
=
"741216"
密码
=
"741216"
i
=
3
while
True
:
while
True
:
name
=
input
(
"账号是啥:"
)
if
i
>
0
:
password
=
input
(
"密码是啥:"
)
print
(
"还剩"
+
str
(
i
)
+
"次机会"
)
shengao
=
input
(
"身高是啥:"
)
name
=
input
(
"账号是啥:"
)
tizhong
=
input
(
"体重是啥:"
)
password
=
input
(
"密码是啥:"
)
shenfenzheng
=
input
(
"身份证是啥:"
)
shengao
=
input
(
"身高是啥:"
)
mima
=
input
(
"密码是啥:"
)
tizhong
=
input
(
"体重是啥:"
)
if
username
==
name
and
userpassword
==
password
and
体重
==
tizhong
and
shengao
==
身高
and
身份证
==
shenfenzheng
and
mima
==
密码
:
shenfenzheng
=
input
(
"身份证是啥:"
)
print
(
"登录成功"
)
mima
=
input
(
"密码是啥:"
)
break
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
:
else
:
print
(
"
登陆失败"
)
# 保存在服务器数据库中的用户密码(正确的密码)
print
(
"
次数已用完"
)
exit
()
print
(
"欢迎来到地狱"
)
print
(
"欢迎来到地狱"
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment