Commit 0ff73c5b by BellCodeEditor

save project

parent 07e76d39
Showing with 7 additions and 5 deletions
......@@ -15,13 +15,14 @@ pen.pensize(5)
pen.pencolor("red")
pen.fillcolor("red")
pen.begin_fill()
len=50
len=screen.textinput("提示","爱心的大小是:")
LS=int(len)
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.forward(2*LS)
pen.circle(LS,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
pen.circle(LS,180)
pen.forward(2*LS)
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