Commit 769e90ca by BellCodeEditor

save project

parent 5af28e59
Showing with 8 additions and 5 deletions
...@@ -11,13 +11,15 @@ pen1.goto(-100,0) ...@@ -11,13 +11,15 @@ pen1.goto(-100,0)
pen1.begin_fill() pen1.begin_fill()
pen1.fillcolor("red") pen1.fillcolor("red")
pen1.pensize(5) pen1.pensize(5)
len=60 screen=turtle.Screen()
len=screen.textinput("提示","你的爱心大小")
loveside=int(len)
pen1.left(45) pen1.left(45)
pen1.forward(2*len) pen1.forward(2*loveside)
pen1.circle(len,180) pen1.circle(loveside,180)
pen1.right(90) pen1.right(90)
pen1.circle(len,180) pen1.circle(loveside,180)
pen1.forward(2*len) pen1.forward(2*loveside)
pen1.hideturtle() pen1.hideturtle()
pen1.end_fill() pen1.end_fill()
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