Commit 4a9d1055 by BellCodeEditor

save project

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