Commit 65d0b791 by BellCodeEditor

save project

parent c2f48e2e
Showing with 5 additions and 6 deletions
......@@ -9,12 +9,11 @@ pen.hideturtle()
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(10)
len=screen.texinput("爱心大小""输整数")
len=30
len=screen.textinput("爱心大小","输整数:")
pen1.left(45)
pen1.forward(2*len)
pen1.circle(len,180)
pen1.forward(int(len)*2)
pen1.circle(int(len),180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(2*len)
pen1.circle(int(len),180)
pen1.forward(int(len)*2)
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