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
e453c957
authored
Aug 01, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
610af75f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
1.py
2.py
5.py
1.py
View file @
e453c957
...
...
@@ -2,7 +2,7 @@ import turtle
screen
=
turtle
.
Screen
()
o
=
screen
.
textinput
(
"提示"
,
"你想要什么颜色的背景?输入一个颜色"
)
screen
.
bgcolor
(
o
)
p
p
=
screen
.
textinput
(
"提示"
,
"你想要什么颜色的爱心吗?输入一个颜色"
)
p
=
screen
.
textinput
(
"提示"
,
"你想要什么颜色的爱心吗?输入一个颜色"
)
i
=
screen
.
textinput
(
"提示"
,
"你想要一个爱心吗?输入一个数字"
)
pen
=
turtle
.
Pen
()
pen
.
penup
()
...
...
@@ -10,7 +10,7 @@ pen.goto(100,-100)
pen
.
write
(
"你好
\n
SB"
,
font
=
(
"方正舒体"
,
20
,
"normal"
))
len
=
int
(
i
)
pen1
=
turtle
.
Pen
()
pen1
.
pencolor
(
p
p
)
pen1
.
pencolor
(
p
)
pen1
.
pensize
(
5
)
pen1
.
left
(
45
)
pen1
.
forward
(
len
*
2
)
...
...
2.py
0 → 100644
View file @
e453c957
5.py
0 → 100644
View file @
e453c957
import
turtle
pen
=
turtle
.
Pen
()
screen
=
turtle
.
Screen
()
o
=
screen
.
textinput
(
"提示"
,
"你想要多大的魔法阵呀?"
)
i
=
int
(
o
)
pen
.
circle
(
i
)
pen
.
circle
(
i
,
360
,
3
)
pen
.
circle
(
i
,
60
)
pen
.
circle
(
i
,
360
,
3
)
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