Commit 678d1abd by BellCodeEditor

save project

parent c7c5255b
Showing with 10 additions and 5 deletions
......@@ -12,13 +12,17 @@ x.hideturtle()
a=turtle.Pen()
a.color("red")
a.fillcolor("red")
a.begin_fill()
a.pensize(5)
len=60
len=screen.textinput("提示","你想要多大的爱心呀!")
lovesize=int(len)
a.left(45)
a.forward(len*2)
a.circle(len,180)
a.forward(lovesize*2)
a.circle(lovesize,180)
a.right(90)
a.circle(len,180)
a.forward(len*2)
a.circle(lovesize,180)
a.forward(lovesize*2)
a.end_fill()
a.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