Commit 19fa8b1f by BellCodeEditor

save project

parent a02a1b30
Showing with 7 additions and 5 deletions
...@@ -5,16 +5,17 @@ screen.bgcolor("light blue") ...@@ -5,16 +5,17 @@ screen.bgcolor("light blue")
pen2 = turtle.Pen() pen2 = turtle.Pen()
pen2.penup() pen2.penup()
def draw(): def draw():
len=30
pen.fillcolor("red") pen.fillcolor("red")
pen.begin_fill() pen.begin_fill()
pen.pensize(10) pen.pensize(10)
pen.pencolor("red") pen.pencolor("red")
pen.left(45) pen.left(45)
pen.forward(100) pen.forward(2*len)
pen.circle(50,180) pen.circle(len,180)
pen.right(90) pen.right(90)
pen.circle(50,180) pen.circle(len,180)
pen.forward(100) pen.forward(2*len)
pen.end_fill() pen.end_fill()
pen.hideturtle() pen.hideturtle()
...@@ -29,6 +30,7 @@ def writer(): ...@@ -29,6 +30,7 @@ def writer():
draw()#画爱心 draw()#画爱心
writer()#写文字 writer()#写文字
turtle.done() turtle.done()
len=screer.textinput("提式".额度)
size=int(len)
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