Commit ce2e2e0b by BellCodeEditor

auto save

parent a15989ca
Showing with 22 additions and 0 deletions
import turtle
screen=turtle.Screen()
#screen.bgcolor("blue")
len=int(screen.textinput("提示","你想画的爱心的大小"))
pen=turtle.Pen()
pen.pencolor("red")
pen.penup()
pen.goto(100,-200)
pen.write("你看看我送你的小红花",font=("Times",15,"normal"))
pen.goto(0,0)
pen.begin_fill()
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
pen.fillcolor("blue")
pen.end_fill()
pen.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