Commit d2bdec90 by BellCodeEditor

save project

parent cb75a623
Showing with 6 additions and 5 deletions
len=60
import turtle
screen=turtle.Screen()
screen.bgcolor("grey")
......@@ -12,13 +11,15 @@ a=turtle.Pen()
a.fillcolor("red")
a.begin_fill()
a.pencolor("black")
len=screen.textinput("提示","你想要多大的爱心?")
lovelen=int(len)
a.pensize(5)
a.left(45)
a.forward(len*2)
a.circle(len,180)
a.forward(lovelen*2)
a.circle(lovelen,180)
a.right(90)
a.circle(len,180)
a.forward(len*2)
a.circle(lovelen,180)
a.forward(lovelen*2)
a.end_fill()
a.hideturtle()
turtle.done()
......
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