Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson5_1
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
bdfdf4fc
authored
Sep 18, 2020
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
dcceec40
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
26 deletions
t.py
t.py
deleted
100644 → 0
View file @
dcceec40
import
turtle
pen
=
turtle
.
Pen
()
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"yellow"
)
pen
.
penup
()
pen
.
goto
(
-
150
,
-
50
)
pen
.
write
(
"王老师,节日快乐,您辛苦了!"
,
font
=
(
"times"
,
30
,
"normal"
))
pen
.
hideturtle
()
p1
=
turtle
.
Pen
()
p1
.
pensize
(
7
)
p1
.
pencolor
(
"red"
)
#你的画笔应该是针对P1的哦,两个而变量要注意一下哦~
p1
.
fillcolor
(
"red"
)
p1
.
begin_fill
()
len
=
int
(
screen
.
textinput
(
"提示"
,
"size"
))
p1
.
left
(
45
)
p1
.
forward
(
len
)
p1
.
circle
(
len
/
2
,
180
)
p1
.
right
(
90
)
p1
.
circle
(
len
/
2
,
180
)
p1
.
forward
(
len
)
p1
.
end_fill
()
p1
.
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