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
1da9a1fe
authored
4 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
2d457f85
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
diy1.py
diy1.py
View file @
1da9a1fe
# # 利用write()帮助悟空给诺依回信吧~
# # 利用write()帮助悟空给诺依回信吧~
import
turtle
import
turtle
# p=turtle.Pen()
screen
=
turtle
.
Screen
()
# p.write("Hi,\n 诺伊~\n 我用write给你写信了\n
screen
.
bgcolor
(
"light blue"
)
# 用python写信太有趣了\n 我也喜欢python\n
p
=
turtle
.
Pen
()
# ——悟空",font=("Times",10,"normal"))
p
.
penup
()
# p.hideturtle()
p
.
goto
(
100
,
-
100
)
# turtle.done()
p
.
write
(
"Hi,
\n
诺伊~
\n
我用write给你写信了
\n
用python写信太有趣了
\n
我也喜欢python
\n
——悟空"
,
font
=
(
"Times"
,
10
,
"normal"
))
p
.
hideturtle
()
t
=
turtle
.
Pen
()
t
=
turtle
.
Pen
()
p
.
fillcolor
(
"red"
)
t
.
left
(
45
)
t
.
left
(
45
)
t
.
forward
(
100
)
t
.
forward
(
100
)
t
.
circle
(
50
,
180
)
t
.
circle
(
50
,
180
)
t
.
left
(
-
90
)
t
.
left
(
-
90
)
t
.
circle
(
50
,
180
)
t
.
circle
(
50
,
180
)
t
.
forward
(
100
)
t
.
forward
(
100
)
t
.
hideturtle
()
t
.
end_
turtle
.
done
()
turtle
.
done
()
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