Commit c190fb7c by BellCodeEditor

save project

parent 10c572a4
Showing with 7 additions and 4 deletions
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
len=screen.textinput("爱心大小","要画多大的爱心?")
len1=int(len)
screen.bgcolor("pink")
pen.penup()
pen.goto(100,-100)
......@@ -11,10 +13,10 @@ pen1.pensize(5)
pen1.pencolor("yellow")
pen1.left(45)
len=60
pen1.forward(2*len)
pen1.circle(len,180)
pen1.forward(2*len1)
pen1.circle(len1,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(2*len)
pen1.circle(len1,180)
pen1.forward(2*len1)
pen1.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