Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-3_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
86349394
authored
Dec 19, 2020
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
70012256
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
diy1.py
diy1.py
View file @
86349394
# 利用write()帮助悟空给诺依回信吧~
import
turtle
x
=
textinput
(
"the size of heart"
)
pen
=
turtle
.
Pen
()
import
turtle
pen
=
turtle
.
Pen
()
pen
.
penup
()
pen
.
goto
(
100
,
-
100
)
pen
.
write
(
"此情此景,我想吟诗一首。
\n
床前明月光,
\n
外面都是霜。"
,
font
=
(
"Times"
,
12
,
"normal"
))
pen
.
write
(
"此情此景,我想吟诗一首。
\n
床前明月光,
\n
外面都是霜。"
,
font
=
(
"Times"
,
12
,
"normal"
))
pen
.
hideturtle
()
penone
=
turtle
.
Pen
()
penone
=
turtle
.
Pen
()
penone
.
pensize
(
10
)
penone
.
pencolor
(
"red"
)
len
=
int
(
x
)
penone
.
left
(
45
)
penone
.
forward
(
2
*
len
)
penone
.
circle
(
len
,
180
)
penone
.
forward
(
100
)
penone
.
circle
(
50
,
180
)
penone
.
right
(
90
)
penone
.
circle
(
len
,
180
)
penone
.
forward
(
2
*
len
)
penone
.
circle
(
50
,
180
)
penone
.
forward
(
100
)
penone
.
hideturtle
()
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