Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson6-5-2
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
edcc80b2
authored
Dec 11, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
599c06b3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
114 additions
and
0 deletions
1.py
画国旗.py
1.py
0 → 100644
View file @
edcc80b2
import
turtle
#中国国旗
turtle
.
up
()
turtle
.
goto
(
-
200
,
200
)
turtle
.
down
()
turtle
.
begin_fill
()
turtle
.
fillcolor
(
"red"
)
turtle
.
pencolor
(
"red"
)
for
i
in
range
(
2
):
turtle
.
forward
(
280
)
turtle
.
right
(
90
)
turtle
.
forward
(
200
)
turtle
.
right
(
90
)
turtle
.
end_fill
()
turtle
.
up
()
turtle
.
goto
(
-
170
,
145
)
turtle
.
down
()
turtle
.
begin_fill
()
turtle
.
fillcolor
(
"yellow"
)
turtle
.
pencolor
(
"yellow"
)
for
x
in
range
(
5
):
turtle
.
forward
(
50
)
turtle
.
right
(
144
)
turtle
.
end_fill
()
turtle
.
up
()
turtle
.
goto
(
-
100
,
180
)
turtle
.
down
()
turtle
.
begin_fill
()
turtle
.
fillcolor
(
"yellow"
)
turtle
.
pencolor
(
"yellow"
)
for
x
in
range
(
5
):
turtle
.
forward
(
20
)
turtle
.
right
(
144
)
turtle
.
end_fill
()
turtle
.
up
()
turtle
.
goto
(
-
70
,
160
)
turtle
.
down
()
turtle
.
begin_fill
()
turtle
.
fillcolor
(
"yellow"
)
turtle
.
pencolor
(
"yellow"
)
for
x
in
range
(
5
):
turtle
.
forward
(
20
)
turtle
.
right
(
144
)
turtle
.
end_fill
()
turtle
.
up
()
turtle
.
goto
(
-
70
,
120
)
turtle
.
down
()
turtle
.
begin_fill
()
turtle
.
fillcolor
(
"yellow"
)
turtle
.
pencolor
(
"yellow"
)
for
x
in
range
(
5
):
turtle
.
forward
(
20
)
turtle
.
right
(
144
)
turtle
.
end_fill
()
turtle
.
up
()
turtle
.
goto
(
-
100
,
100
)
turtle
.
down
()
turtle
.
begin_fill
()
turtle
.
fillcolor
(
"yellow"
)
turtle
.
pencolor
(
"yellow"
)
for
x
in
range
(
5
):
turtle
.
forward
(
20
)
turtle
.
right
(
144
)
turtle
.
end_fill
()
turtle
.
hideturtle
()
#隐藏小海龟
#维持面板
turtle
.
done
()
\ No newline at end of file
画国旗.py
0 → 100644
View file @
edcc80b2
import
turtle
import
turtle
pen
=
turtle
.
Pen
()
pen
.
speed
(
5
)
pen
.
fillcolor
(
"red"
)
pen
.
begin_fill
()
pen
.
penup
()
pen
.
goto
(
-
150
,
100
)
for
i
in
range
(
2
):
pen
.
forward
(
300
)
pen
.
left
(
-
90
)
pen
.
forward
(
200
)
pen
.
left
(
-
90
)
pen
.
end_fill
()
#大五角星
pen
.
penup
()
pen
.
goto
(
-
130
,
60
)
pen
.
pencolor
(
"yellow"
)
pen
.
pendown
()
pen
.
fillcolor
(
"yellow"
)
pen
.
begin_fill
()
for
i
in
range
(
5
):
pen
.
forward
(
60
)
pen
.
left
(
-
144
)
pen
.
end_fill
()
#上小五角星
pen
.
goto
(
-
130
,
60
)
pen
.
pencolor
(
"yellow"
)
pen
.
pendown
()
pen
.
fillcolor
(
"yellow"
)
pen
.
begin_fill
()
for
i
in
range
(
5
):
pen
.
forward
(
60
)
pen
.
left
(
-
144
)
pen
.
end_fill
()
turtle
.
done
()
\ 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