Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson3_diy1
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
e77d88bc
authored
Sep 23, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
d5739bd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
78 additions
and
0 deletions
简版五星红旗.py
简版五星红旗.py
0 → 100644
View file @
e77d88bc
import
turtle
import
turtle
#红色国旗面
turtle
.
penup
()
turtle
.
goto
(
-
300
,
-
200
)
turtle
.
pendown
()
turtle
.
color
(
"red"
)
turtle
.
begin_fill
()
turtle
.
forward
(
600
)
turtle
.
left
(
90
)
turtle
.
forward
(
400
)
turtle
.
left
(
90
)
turtle
.
forward
(
600
)
turtle
.
left
(
90
)
turtle
.
forward
(
400
)
turtle
.
left
(
90
)
turtle
.
end_fill
()
#大五角星
turtle
.
color
(
"gold"
)
turtle
.
begin_fill
()
turtle
.
penup
()
turtle
.
goto
(
-
260
,
120
)
turtle
.
pendown
()
for
i
in
range
(
5
):
turtle
.
forward
(
120
)
turtle
.
right
(
144
)
turtle
.
end_fill
()
#第1颗小五角星
turtle
.
color
(
"gold"
)
turtle
.
begin_fill
()
turtle
.
penup
()
turtle
.
goto
(
-
120
,
160
)
turtle
.
pendown
()
for
i
in
range
(
5
):
turtle
.
forward
(
40
)
turtle
.
right
(
144
)
turtle
.
end_fill
()
#第2颗小五角星
turtle
.
color
(
"gold"
)
turtle
.
begin_fill
()
turtle
.
penup
()
turtle
.
goto
(
-
80
,
120
)
turtle
.
pendown
()
for
i
in
range
(
5
):
turtle
.
forward
(
40
)
turtle
.
right
(
144
)
turtle
.
end_fill
()
#第3颗小五角星
turtle
.
color
(
"gold"
)
turtle
.
begin_fill
()
turtle
.
penup
()
turtle
.
goto
(
-
80
,
60
)
turtle
.
pendown
()
for
i
in
range
(
5
):
turtle
.
forward
(
40
)
turtle
.
right
(
144
)
turtle
.
end_fill
()
#第4颗小五角星
turtle
.
color
(
"gold"
)
turtle
.
begin_fill
()
turtle
.
penup
()
turtle
.
goto
(
-
120
,
20
)
turtle
.
pendown
()
for
i
in
range
(
5
):
turtle
.
forward
(
40
)
turtle
.
right
(
144
)
turtle
.
end_fill
()
turtle
.
done
()
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