Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-5-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
c74626a3
authored
3 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
07858a54
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
diy1.py
diy1.py
0 → 100644
View file @
c74626a3
import
turtle
import
random
pen
=
turtle
.
Pen
()
s
=
turtle
.
Screen
()
pen
.
penup
()
pen
.
hideturtle
()
pen
.
write
(
"白雪歌送武判官归京
\n
[唐] 岑参
\n
北风卷地白草折,胡天八月即飞雪。
\n
忽如一夜春风来,千树万树梨花开。
\n
散入珠帘湿罗幕,狐裘不暖锦衾薄。
\n
将军角弓不得控,都护铁衣冷难着。
\n
瀚海阑干百丈冰,愁云惨淡万里凝。
\n
中军置酒饮归客,胡琴琵琶与羌笛。
\n
纷纷暮雪下辕门,风掣红旗冻不翻。
\n
轮台东门送君去,去时雪满天山路。
\n
山回路转不见君,雪上空留马行处。"
,
font
=
(
"Times"
,
15
,
"normal"
))
s
.
bgcolor
(
"blue"
)
a
=
int
(
s
.
textinput
(
"提示"
,
"你想要多大的爱心呀?"
))
pen
.
fillcolor
(
"red"
)
pen
.
begin_fill
()
pen
.
goto
(
-
150
,
-
260
)
pen
.
left
(
45
)
pen
.
forward
(
2
*
a
)
pen
.
circle
(
a
,
180
)
pen
.
right
(
90
)
pen
.
circle
(
a
,
180
)
pen
.
forward
(
2
*
a
)
pen
.
end_fill
()
turtle
.
done
()
\ 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