Commit 6e2c7226 by BellCodeEditor

save project

parent 88e32488
Showing with 7 additions and 5 deletions
......@@ -8,15 +8,16 @@ pen.write("SB",font=("Times",30,"normal"))
pen.hideturtle()
#turtle.done()
len=60
len=screen.textinput("提示:","你想要多大的爱心")
lovesize=int(len)
penl=turtle.Pen()
penl.pensize(5)
penl.pencolor("red")
penl.left(45)
penl.forward(2*len)
penl.circle(len,180)
penl.forward(2*lovesize)
penl.circle(lovesize,180)
penl.right(90)
penl.circle(50,180)
penl.forward(100)
penl.circle(lovesize,180)
penl.forward(2*lovesize)
penl.hideturtle()
turtle.done()
\ No newline at end of file
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