Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-1-2_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
4a61e608
authored
Jun 10, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
5d734d76
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
785 additions
and
13 deletions
33.py
333.py
77.py
star.py
33.py
0 → 100644
View file @
4a61e608
import
turtle
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"pink"
)
pen
=
turtle
.
Pen
()
pen
.
penup
()
pen
.
goto
(
100
,
-
100
)
pen
.
write
(
"你好!"
,
font
=
(
"Times"
,
30
,
"normal"
))
pen
.
hideturtle
()
pen1
=
turtle
.
Pen
()
pen1
.
pensize
(
5
)
pen1
.
pencolor
(
"red"
)
pen1
.
left
(
45
)
pen1
.
forward
(
100
)
pen1
.
circle
(
50
,
180
)
pen1
.
right
(
90
)
pen1
.
circle
(
50
,
180
)
pen1
.
forward
(
100
)
pen1
.
hideturtle
()
turtle
.
done
()
333.py
View file @
4a61e608
...
...
@@ -4,7 +4,672 @@ screen.bgcolor("Light blue")
pen
=
turtle
.
Pen
()
pen
.
penup
()
pen
.
goto
(
100
,
-
100
)
pen
.
write
(
"泰裤辣"
,
font
=
(
"Times"
,
30
,
"normal"
))
pen
.
write
(
"************import turtle
screen=turtle.Screen()
screen.bgcolor("
Light
blue
")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("
************
\
n
************
",font=("
Times
",30,"
normal
"))
pen.hideturtle()
len=screen.textinput("
大小
","
你想要的爱心大小是?
")
s=int(len)
pen1=turtle.Pen()
pen1.pencolor("
red
")
pen1.pensize(5)
pen1.left(45)
pen1.forward(s*2)
pen1.circle(s,180)
pen1.right(90)
pen1.circle(s,180)
pen1.forward(s*2)
turtle.done()import turtle
screen=turtle.Screen()
screen.bgcolor("
Light
blue
")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("
************
\
n
************
",font=("
Times
",30,"
normal
"))
pen.hideturtle()
len=screen.textinput("
大小
","
你想要的爱心大小是?
")
s=int(len)
pen1=turtle.Pen()
pen1.pencolor("
red
")
pen1.pensize(5)
pen1.left(45)
pen1.forward(s*2)
pen1.circle(s,180)
pen1.right(90)
pen1.circle(s,180)
pen1.forward(s*2)
turtle.done()import turtle
screen=turtle.Screen()
screen.bgcolor("
Light
blue
")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("
************
\
n
************
",font=("
Times
",30,"
normal
"))
pen.hideturtle()
len=screen.textinput("
大小
","
你想要的爱心大小是?
")
s=int(len)
pen1=turtle.Pen()
pen1.pencolor("
red
")
pen1.pensize(5)
pen1.left(45)
pen1.forward(s*2)
pen1.circle(s,180)
pen1.right(90)
pen1.circle(s,180)
pen1.forward(s*2)
turtle.done()import turtle
screen=turtle.Screen()
screen.bgcolor("
Light
blue
")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("
************
\
n
************
",font=("
Times
",30,"
normal
"))
pen.hideturtle()
len=screen.textinput("
大小
","
你想要的爱心大小是?
")
s=int(len)
pen1=turtle.Pen()
pen1.pencolor("
red
")
pen1.pensize(5)
pen1.left(45)
pen1.forward(s*2)
pen1.circle(s,180)
pen1.right(90)
pen1.circle(s,180)
pen1.forward(s*2)
turtle.done()import turtle
screen=turtle.Screen()
screen.bgcolor("
Light
blue
")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("
************
\
n
************
",font=("
Times
",30,"
normal
"))
pen.hideturtle()
len=screen.textinput("
大小
","
你想要的爱心大小是?
")
s=int(len)
pen1=turtle.Pen()
pen1.pencolor("
red
")
pen1.pensize(5)
pen1.left(45)
pen1.forward(s*2)
pen1.circle(s,180)
pen1.right(90)
pen1.circle(s,180)
pen1.forward(s*2)
turtle.done()import turtle
screen=turtle.Screen()
screen.bgcolor("
Light
blue
")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("
************
\
n
************
",font=("
Times
",30,"
normal
"))
pen.hideturtle()
len=screen.textinput("
大小
","
你想要的爱心大小是?
")
s=int(len)
pen1=turtle.Pen()
pen1.pencolor("
red
")
pen1.pensize(5)
pen1.left(45)
pen1.forward(s*2)
pen1.circle(s,180)
pen1.right(90)
pen1.circle(s,180)
pen1.forward(s*2)
turtle.done()import turtle
screen=turtle.Screen()
screen.bgcolor("
Light
blue
")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("
************
\
n
************
",font=("
Times
",30,"
normal
"))
pen.hideturtle()
len=screen.textinput("
大小
","
你想要的爱心大小是?
")
s=int(len)
pen1=turtle.Pen()
pen1.pencolor("
red
")