Commit 29f5e659 by BellCodeEditor

save project

parent 50cb6781
Showing with 6 additions and 5 deletions
......@@ -2,7 +2,8 @@ import turtle
pen=turtle.Pen()
pen1=turtle.Pen()
bg=turtle.Screen()
a=
len=bg.textinput("提示","输入1~100的数字")
lovesize=(int(len)+30)
bg.bgcolor("light blue")
pen1.penup()
pen1.goto(100,-50)
......@@ -12,11 +13,11 @@ pen1.hideturtle()
pen.pensize(10)
pen.color("red")
pen.left(45)
pen.forward(100)
pen.circle(50,180)
pen.forward(lovesize)
pen.circle(0.5*lovesize,180)
pen.right(90)
pen.circle(50,180)
pen.forward(100)
pen.circle(0.5*lovesize,180)
pen.forward(lovesize)
......
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