Commit 41e03c29 by BellCodeEditor

save project

parent de0a630b
Showing with 7 additions and 4 deletions
...@@ -12,11 +12,13 @@ len=60 ...@@ -12,11 +12,13 @@ len=60
penl=turtle.Pen() penl=turtle.Pen()
penl.pencolor("red") penl.pencolor("red")
penl.pensize(5) penl.pensize(5)
len=screen.textinput("提示","你想要什么样的爱心?")
lovesize=int(len)
penl.left(45) penl.left(45)
penl.forward(2*len) penl.forward(2*lovesize)
penl.circle(len,180) penl.circle(lovesize,180)
penl.right(90) penl.right(90)
penl.circle(len,180) penl.circle(lovesize,180)
penl.forward(2*len) penl.forward(2*lovesize)
penl.hideturtle() penl.hideturtle()
turtle.done() 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