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
15d2a633
authored
Nov 27, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
c2f1308f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
1.py
diy1.py
1.py
0 → 100644
View file @
15d2a633
import
turtle
as
t
for
i
in
range
(
1
,
10
):
t
.
circle
(
100
,
360
,
i
)
t
.
home
()
t
.
rt
(
90
)
t
.
pu
()
t
.
fd
(
80
)
#为了不与图像重合,将小乌龟向下移动后写字
t
.
write
(
"酷"
,
False
,
'center'
,
font
=
(
'华文中宋'
,
25
,
'normal'
))
t
.
fd
(
50
)
#为了小乌龟不挡住字,将小乌龟再次向下移动
t
.
done
()
\ No newline at end of file
diy1.py
View file @
15d2a633
# 利用write()帮助悟空给诺依回信吧~
\ No newline at end of file
# 利用write()帮助悟空给诺依回信吧~
import
turtle
pen
=
turtle
.
Pen
()
pen
.
write
(
"Hi,诺依~
\n
用python写电子贺卡真是太有趣啦~
\n
我也喜欢python~
\n
——悟空 "
,
font
=
(
"Times"
,
18
,
"normal"
))
pen
.
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