Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-4-1_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
889f9130
authored
2 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
7b809309
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
72 additions
and
21 deletions
diy1 copy.py
diy1.py
liu1/liu2.py
diy1 copy.py
0 → 100644
View file @
889f9130
import
turtle
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"light blue"
)
pen
=
turtle
.
Pen
()
pen
.
penup
()
pen
.
goto
(
30
,
0
)
pen
.
write
(
"你好!请你说出对2020的祝福~!"
,
font
=
(
"Times"
,
20
,
"normal"
))
pen
.
hideturtle
()
pen1
=
turtle
.
Pen
()
len
=
screen
.
textinput
(
"提示"
,
"你想要多大的爱心?"
)
pen1
.
pensize
(
5
)
pen1
.
pencolor
(
"red"
)
pen1
.
left
(
45
)
pen1
.
forward
(
100
)
pen1
.
circle
(
50
,
180
)
pen1
.
right
(
90
)
pen1
.
circle
(
50
,
180
)
pen1
.
forward
(
100
)
turtle
.
done
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
diy1.py
View file @
889f9130
import
turtle
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"light blue"
)
pen
=
turtle
.
Pen
()
pen
.
penup
()
pen
.
goto
(
10
0
,
0
)
pen
.
write
(
"你好!
"
,
font
=
(
"Times"
,
3
0
,
"normal"
))
pen
.
goto
(
3
0
,
0
)
pen
.
write
(
"你好!
请你说出对2020的祝福~!"
,
font
=
(
"Times"
,
2
0
,
"normal"
))
pen
.
hideturtle
()
pen1
=
turtle
.
Pen
()
len
=
screen
.
textinput
(
"提示"
,
"你想要多大的爱心?"
)
pen1
.
pensize
(
5
)
pen1
.
pencolor
(
"red"
)
pen1
.
left
(
45
)
...
...
This diff is collapsed.
Click to expand it.
liu1/liu2.py
View file @
889f9130
import
turtle
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"light blue"
)
pen
=
turtle
.
Pen
()
pen
.
penup
()
pen
.
goto
(
100
,
0
)
pen
.
write
(
"你好"
,
font
=
(
"Times"
,
"50"
,
"normal"
))
pen1
=
turtle
.
Pen
()
pen1
.
pensize
(
5
)
pen1
.
pencolor
(
"red"
)
pen1
.
left
(
45
)
pen1
.
forward
(
100
)
pen1
.
circle
(
50
,
180
)
pen1
.
right
(
90
)
pen1
.
circle
(
50
,
180
)
pen1
.
forward
(
100
)
turtle
.
done
()
\ No newline at end of file
# import turtle
# pen=turtle.Pen()
# pen.left(45)
# pen.forward(100)
# pen.left(90)
# pen.circle(50,180)
# pen.left(180)
# pen.forward(100)
# pen.right(90)
# pen.circle(-50,180)
# turtle.done()
# import turtle
# pen=turtle.Pen()
# pen.pencolor("blue")
# pen.penup()
# pen.goto(-100,0)
# pen.pendown()
# pen.pensize(5)
# pen.circle(50,360)
# pen1=turtle.Pen()
# pen1.pencolor("black")
# pen1.pensize(5)
# pen1.circle(50,360)
# pen2=turtle.Pen()
# pen2.penup()
# pen2.goto(100,0)
# pen2.pendown()
# pen2.pencolor("red")
# pen2.pensize(5)
# pen2.circle(50,360)
# pen3=turtle.Pen()
# pen3.penup()
# pen3.goto(-50,-90)
# pen3.pendown()
# pen3.pencolor("yellow")
# pen3.pensize(5)
# pen3.circle(50,360)
# pen4=turtle.Pen()
# pen4.penup()
# pen4.goto(50,-90)
# pen4.pendown()
# pen4.pencolor("green")
# pen4.pensize(5)
# pen4.circle(50,360)
# turtle.done()
?
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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