Commit 976f1fb9 by BellCodeEditor

save project

parent 7ec47306
Showing with 12 additions and 9 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("light yellow")
len=screen.textinput("提示","画爱心")
lovesive=int(len)
pen=turtle.Pen()
pen.write("for you\n与卿",font=("Time",30,"normal"))
pen.write("for you\n.........",font=("Time",30,"normal"))
pen.fillcolor("red")
pen.penup()
pen.pencolor("red")
......@@ -10,11 +12,11 @@ pen.goto(-200,0)
pen.pendown()
pen.begin_fill()
pen.left(45)
pen.forward(200)
pen.circle(100,180)
pen.forward(2*lovesive)
pen.circle(lovesive,180)
pen.right(90)
pen.circle(100,180)
pen.forward(200)
pen.circle(lovesive,180)
pen.forward(2*lovesive)
pen.end_fill()
pen.fillcolor("pink")
pen.penup()
......@@ -23,10 +25,10 @@ pen.goto(-200,0)
pen.pendown()
pen.begin_fill()
pen.left(45)
pen.forward(100)
pen.circle(50,180)
pen.forward(lovesive)
pen.circle(0.5*lovesive,180)
pen.right(90)
pen.circle(50,180)
pen.forward(100)
pen.circle(0.5*lovesive,180)
pen.forward(lovesive)
pen.end_fill()
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