Commit 4a9d1055 by BellCodeEditor

save project

parent 4cd50c7c
Showing with 7 additions and 7 deletions
......@@ -9,14 +9,13 @@ pen.hideturtle()
pen1=turtle.Pen()
pen1.pensize(10)
pen1.pencolor("red")
screen.textinput("半径","输入爱心半径")
giaosize=int()
giao=60
giao=screen.textinput("半径","输入爱心半径")
giaosize=int(giao)
pen1.left(45)
pen1.forward(giao)
pen1.circle(giao*0.5,180)
pen1.forward(giaosize)
pen1.circle(giaosize*0.5,180)
pen1.right(90)
pen1.circle(giao*0.5,180)
pen1.forward(giao)
pen1.circle(giaosize*0.5,180)
pen1.forward(giaosize)
pen1.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