Commit 75239840 by BellCodeEditor

save project

parent b54e3a29
Showing with 5 additions and 4 deletions
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen() screen=turtle.Screen()
len=100
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
pen.pendown() pen.pendown()
...@@ -8,11 +9,11 @@ screen.bgcolor("blue") ...@@ -8,11 +9,11 @@ screen.bgcolor("blue")
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)
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