Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-2_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
878de472
authored
a year ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
5f65fd63
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
14 deletions
diy1.py
diy1.py
View file @
878de472
# # 利用write()帮助悟空给诺依回信吧~
from
turtle
import
*
left
(
45
)
pensize
(
5
)
forward
(
100
)
circle
(
50
,
180
)
right
(
90
)
circle
(
50
,
180
)
forward
(
100
)
penup
()
goto
(
30
,
-
100
)
write
(
"你干嘛"
,
font
=
(
"times"
,
30
,
"normal"
))
done
()
# from turtle import *
# left(45)
# pensize(5)
# forward(100)
# circle(50,180)
# right(90)
# circle(50,180)
# forward(100)
# penup()
# goto(30,-100)
# write("你干嘛",font=("times",30,"normal"))
# done()
importi
turtle
screen
=
turtle
screen
.
bgcolor
(
'light blue'
)
pen
.
color
(
'red'
)
pen
.
left
(
45
)
pen
.
forward
(
100
)
pen
.
circle
(
50
,
180
)
pen
.
right
(
90
)
pen
.
circle
(
50
,
180
)
pen
.
forward
(
100
)
pen
.
penup
()
pen
.
goto
(
100
,
100
)
pen
.
\ 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