Commit 659b003a by BellCodeEditor

save project

parent 9a53fc4c
Showing with 7 additions and 5 deletions
...@@ -8,14 +8,15 @@ pen.goto(-100,0) ...@@ -8,14 +8,15 @@ pen.goto(-100,0)
pen.write("www",font=("Times",100,"normal")) pen.write("www",font=("Times",100,"normal"))
pen.hideturtle() pen.hideturtle()
turtle.done() turtle.done()
len=60 len=screen.textinput("提示","你想要多大的爱心?")
lovesize=int(len)
pen.pensize(10) pen.pensize(10)
pen.pencolor("red") pen.pencolor("red")
pen.left(45) pen.left(45)
pen.forword(2*len) pen.forward(2*lovesize)
pen.circle(len,180) pen.circle(lovesize,180)
pen.right(90) pen.right(90)
pen.circle(len,180) pen.circle(lovesize,180)
pen.forward(2*len) pen.forward(2*lovesize)
pen.hideturtle() pen.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