Commit 8bd31ddc by BellCodeEditor

save project

parent a37c42ae
Showing with 5 additions and 6 deletions
......@@ -6,7 +6,7 @@ import turtle
# len=int(len)
screen=turtle.Screen()
len=screen.textinput("提示","输入你想画的❤的大小")
len=int(len)
lovesize=int(len)
screen.bgcolor("light blue")
pen=turtle.Pen()
pen.penup()
......@@ -16,13 +16,12 @@ pen.hideturtle()
pen1=turtle.Pen()
pen1.pensize("5")
pen1.pencolor("red")
len=102
pen1.left(45)
pen1.forward(2*len)
pen1.circle(len,180)
pen1.forward(2*lovesize)
pen1.circle(lovesize,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(2*len)
pen1.circle(lovesize,180)
pen1.forward(2*lovesize)
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