Commit 96dbc2ac by BellCodeEditor

save project

parent a52a9870
Showing with 5 additions and 4 deletions
len=60
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light green") screen.bgcolor("light green")
...@@ -10,11 +11,11 @@ a=turtle.Pen() ...@@ -10,11 +11,11 @@ a=turtle.Pen()
a.pencolor("red") a.pencolor("red")
a.pensize(5) a.pensize(5)
a.left(45) a.left(45)
a.forward(100) a.forward(len*2)
a.circle(50,180) a.circle(len,180)
a.right(90) a.right(90)
a.circle(50,180) a.circle(len,180)
a.forward(100) a.forward(len*2)
a.hideturtle() a.hideturtle()
turtle.done() 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