Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson6-4
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
ff3016ab
authored
Jan 17, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
bf05b29d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
0 deletions
2021.py
2021.py
0 → 100644
View file @
ff3016ab
hang
=
0
lie
=
0
shu
=
[
2
,
0
,
2
,
1
]
for
i
in
range
(
4
):
shu
[
int
(
i
)]
=
input
(
'第'
+
str
(
i
+
1
)
+
'个数:'
)
for
g
in
range
(
4
):
if
shu
[
g
]
==
0
:
for
hang
in
range
(
1
,
6
):
for
lie
in
range
(
7
):
if
lie
==
0
or
lie
==
6
:
print
(
'·'
,
end
=
''
)
elif
hang
==
1
or
hang
==
1
or
hang
==
5
or
hang
==
5
or
lie
==
5
or
lie
==
1
:
print
(
shu
[
g
],
end
=
''
)
else
:
print
(
'·'
,
end
=
''
)
print
()
print
(
'·······'
)
if
shu
[
g
]
==
1
:
for
hang
in
range
(
1
,
6
):
for
lie
in
range
(
7
):
if
lie
==
0
or
lie
==
6
:
print
(
'·'
,
end
=
''
)
elif
lie
==
2
and
hang
==
2
or
lie
==
2
and
hang
==
5
or
lie
==
3
or
hang
==
5
:
print
(
shu
[
g
],
end
=
''
)
else
:
print
(
'·'
,
end
=
''
)
print
()
print
(
'·······'
)
if
shu
[
g
]
==
2
:
for
hang
in
range
(
1
,
6
):
for
lie
in
range
(
7
):
if
lie
==
0
or
lie
==
6
:
print
(
'·'
,
end
=
''
)
elif
hang
==
1
or
hang
==
2
and
lie
==
5
or
hang
==
3
or
hang
==
4
and
lie
==
1
or
hang
==
5
:
print
(
shu
[
g
],
end
=
''
)
else
:
print
(
'·'
,
end
=
''
)
print
()
print
(
'·······'
)
if
shu
[
g
]
==
3
:
for
hang
in
range
(
1
,
6
):
for
lie
in
range
(
7
):
if
lie
==
0
or
lie
==
6
:
print
(
'·'
,
end
=
''
)
elif
hang
==
1
or
hang
==
2
and
lie
==
5
or
hang
==
3
or
hang
==
4
and
lie
==
5
or
hang
==
5
:
print
(
shu
[
g
],
end
=
''
)
else
:
print
(
'·'
,
end
=
''
)
print
()
print
(
'·······'
)
while
True
:
print
(
end
=
''
)
\ 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