Commit 466e1b86 by BellCodeEditor

save project

parent 07858a54
Showing with 23 additions and 0 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
pen1=turtle.Pen()
pen1.penup()
pen1.goto(100,-100)
pen1.write("天王盖地虎\n钻石王老五\n小鸡炖蘑菇\n你个250",font=("times",40,"normal"))
pen1.hideturtle()
len=screen.textinput("提示","爱心大小")
interesting=int(len)
pen=turtle.Pen()
pen.pencolor("red")
pen.fillcolor("red")
pen.begin_fill()
pen.right(-45)
pen.forward(2*interesting)
pen.circle(interesting,180)
pen.right(90)
pen.circle(interesting,180)
pen.forward(2*interesting)
pen.end_fill()
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