Commit d4a606bd by BellCodeEditor

save project

parent c0b2c20a
Showing with 5 additions and 4 deletions
import turtle import turtle
c=60
s=turtle.Screen() s=turtle.Screen()
s.bgcolor("blue") s.bgcolor("blue")
p=turtle.Pen() p=turtle.Pen()
...@@ -6,11 +7,11 @@ p1=turtle.Pen() ...@@ -6,11 +7,11 @@ p1=turtle.Pen()
p1.fillcolor("red") p1.fillcolor("red")
p1.begin_fill() p1.begin_fill()
p1.left(45) p1.left(45)
p1.forward(100) p1.forward(2*c)
p1.circle(50,180) p1.circle(c,180)
p1.right(90) p1.right(90)
p1.circle(50,180) p1.circle(c,180)
p1.forward(100) p1.forward(2*c)
p1.end_fill() p1.end_fill()
p.penup() p.penup()
p.goto(100,-100) p.goto(100,-100)
......
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