Commit 208c0f8b by BellCodeEditor

save project

parent 6ce70e05
Showing with 8 additions and 7 deletions
...@@ -11,15 +11,16 @@ pen1.hideturtle() ...@@ -11,15 +11,16 @@ pen1.hideturtle()
pen = turtle.Pen() pen = turtle.Pen()
pen.pencolor("red") pen.pencolor("red")
pen.pensize(3) pen.pensize(3)
pen.fillcolour("red") len=screen.textinput("提示","len=?")
pen.bring_fill() lovesize=int(len)
pen.left(45) pen.left(45)
pen.forward(100) pen.forward(2*lovesize)
pen.circle(50,180) pen.circle(lovesize,180)
pen.right(90) pen.right(90)
pen.circle(50,180) pen.circle(lovesize,180)
pen.forward(100) pen.forward(2*lovesize)
pen.end_fill()
turtle.done() 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