Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-1-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
51ca456d
authored
Mar 05, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
e0ee11b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
diy1.py
diy1.py
View file @
51ca456d
...
@@ -29,8 +29,12 @@
...
@@ -29,8 +29,12 @@
import
turtlea
import
turtle
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"pink"
)
hlfl
=
turtle
.
Pen
()
hlfl
=
turtle
.
Pen
()
len
=
screen
.
textinput
(
"提示"
,
"你想要多大的爱心呀?"
)
lovesize
=
int
(
len
)
hlfl
.
pencolor
(
"black"
)
hlfl
.
pencolor
(
"black"
)
hlfl
.
pensize
(
2
)
hlfl
.
pensize
(
2
)
hlfl
.
write
(
"噫吁嚱,危乎高哉!
\n
蜀道之难,难于上青天!
\n
蚕丛及鱼凫,开国何茫然!
\n
"
,
font
=
(
"宋体"
,
18
,
"normal"
))
hlfl
.
write
(
"噫吁嚱,危乎高哉!
\n
蜀道之难,难于上青天!
\n
蚕丛及鱼凫,开国何茫然!
\n
"
,
font
=
(
"宋体"
,
18
,
"normal"
))
...
@@ -40,14 +44,15 @@ hlfl.goto(-110,50)
...
@@ -40,14 +44,15 @@ hlfl.goto(-110,50)
# hlfl.write("问君西游何时还?畏途巉岩不可攀。但见悲鸟号古木,雄飞雌从绕林间。又闻子规啼夜月,愁空山。蜀道之难,难于上青天,使人听此凋朱颜!连峰去天不盈尺,枯松倒挂倚绝壁。飞湍瀑流争喧豗,砯崖转石万壑雷。其险也如此,嗟尔远道之人胡为乎来哉!")
# hlfl.write("问君西游何时还?畏途巉岩不可攀。但见悲鸟号古木,雄飞雌从绕林间。又闻子规啼夜月,愁空山。蜀道之难,难于上青天,使人听此凋朱颜!连峰去天不盈尺,枯松倒挂倚绝壁。飞湍瀑流争喧豗,砯崖转石万壑雷。其险也如此,嗟尔远道之人胡为乎来哉!")
hlfl
.
left
(
45
)
hlfl
.
left
(
45
)
hlfl
.
pendown
()
hlfl
.
pendown
()
hlfl
.
forward
(
100
)
hlfl
.
forward
(
2
*
lovesize
)
# 剑阁峥嵘而崔嵬,一夫当关,万夫莫开。所守或匪亲,化为狼与豺。朝避猛虎,夕避长蛇;磨牙吮血,杀人如麻。锦城虽云乐,不如早还家。蜀道之难,难于上青天,侧身西望长咨嗟!")
# 剑阁峥嵘而崔嵬,一夫当关,万夫莫开。所守或匪亲,化为狼与豺。朝避猛虎,夕避长蛇;磨牙吮血,杀人如麻。锦城虽云乐,不如早还家。蜀道之难,难于上青天,侧身西望长咨嗟!")
hlfl
.
circle
(
50
,
180
)
hlfl
.
circle
(
lovesize
,
180
)
hlfl
.
right
(
90
)
hlfl
.
right
(
90
)
hlfl
.
circle
(
50
,
180
)
hlfl
.
circle
(
lovesize
,
180
)
hlfl
.
forward
(
100
)
hlfl
.
forward
(
2
*
lovesize
)
...
...
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