Commit aae3065b by BellCodeEditor

save project

parent f7922871
Showing with 23 additions and 0 deletions
import turtle
screen=turtle.Screen()
a=screen.textinput("姓名框","爱心大小:")
screen.bgcolor("orange")
len=int(a)
pen=turtle.Pen()
pen.fillcolor("pink")
pen.begin_fill()
pen.pencolor("red")
pen.pensize(5)
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
pen.end_fill()
pen.penup()
pen.goto(200,0)
pen.write("继续加油!",font=("Times",30,"normal"))
pen.hideturtle()
turtle.done()
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