Commit 8c652f3f by BellCodeEditor

save project

parent 79005658
Showing with 5 additions and 4 deletions
...@@ -4,14 +4,15 @@ pen.pencolor("red") ...@@ -4,14 +4,15 @@ pen.pencolor("red")
pen.pensize(10) pen.pensize(10)
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light pink") screen.bgcolor("light pink")
len=screen.textinput("你想要多大的爱心","20到50")
pen.fillcolor("red") pen.fillcolor("red")
pen.begin_fill() pen.begin_fill()
pen.left(45) pen.left(45)
pen.forward(100) pen.forward(len)
pen.circle(50,180) pen.circle(len,180)
pen.right(90) pen.right(90)
pen.circle(50,180) pen.circle(len,180)
pen.forward(100) pen.forward(len)
pen.penup() pen.penup()
pen.forward(100) pen.forward(100)
pen.pendown() pen.pendown()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment