Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-3-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
e5944909
authored
Apr 30, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
24a364be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
1 deletions
WY.PY
demo.py
WY.PY
View file @
e5944909
import
turtle
import
turtle
# pen=turtle.Pen()
# pen.write("你好,我随意发挥\n我的说的话vu\n封闭u哦虽然",font=("times",30,"normal"))
# pen.hideturtle()
# turtle.done()
pen
=
turtle
.
Pen
()
pen
=
turtle
.
Pen
()
pen
.
write
(
"你好,我随意发挥
\n
我的说的话vu
\n
封闭u哦虽然"
,
font
=
(
"times"
,
30
,
"normal"
))
pen
.
fillcolor
(
"red"
)
pen
.
begin_fill
()
pen
.
pencolor
(
"red"
)
pen
.
pensize
(
5
)
pen
.
left
(
45
)
pen
.
forward
(
100
)
pen
.
circle
(
50
,
180
)
pen
.
right
(
90
)
pen
.
circle
(
50
,
180
)
pen
.
forward
(
100
)
pen
.
hideturtle
()
pen
.
hideturtle
()
pen
.
end_fill
()
turtle
.
done
()
turtle
.
done
()
\ No newline at end of file
demo.py
0 → 100644
View file @
e5944909
import
turtle
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"green"
)
pen
=
turtle
.
Pen
()
pen
.
penup
()
pen
.
goto
(
0
,
-
100
)
pen
.
write
(
"人生中不时有些难得的时刻,
\n
凡事一经觉定,
\n
就能影响久远。
\n
在这种关键时刻,
\n
应该有勇气表示赞成或反对。"
,
font
=
(
"Times"
,
12
,
"normal"
))
pen
.
hideturtle
()
pen1
=
turtle
.
Pen
()
pen1
.
begin_fill
()
pen1
.
fillcolor
(
"pink"
)
pen1
.
pensize
(
5
)
pen1
.
pencolor
(
"pink"
)
pen1
.
left
(
45
)
pen1
.
forward
(
120
)
pen1
.
circle
(
60
,
180
)
pen1
.
right
(
90
)
pen1
.
circle
(
60
,
180
)
pen1
.
forward
(
120
)
pen1
.
end_fill
()
turtle
.
done
()
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