9-11

import turtle
turtle.penup()
turtle.goto(-300,300)
turtle.pendown()
turtle.color("red")
turtle.fillcolor("red")
turtle.begin_fill()
turtle.forward(500)
turtle.right(90)
turtle.forward(300)
turtle.right(90)
turtle.forward(500)
turtle.right(90)
turtle.forward(300)
turtle.right(90)
turtle.end_fill()
turtle.penup()
turtle.goto(-250,250)
turtle.pendown()
turtle.color("yellow")
turtle.fillcolor("yellow")
turtle.begin_fill()
for i in range(5):
    turtle.forward(150)
    turtle.right(144)
turtle.end_fill()
turtle.penup()
turtle.goto(-90,280)
turtle.pendown()
turtle.begin_fill()
for i in range(5):
    turtle.forward(40)
    turtle.right(144)
turtle.end_fill()
turtle.penup()
turtle.goto(-80,230)
turtle.pendown()
turtle.begin_fill()
for i in range(5):
    turtle.forward(40)
    turtle.right(144)
turtle.end_fill()
turtle.penup()
turtle.goto(-90,190)
turtle.pendown()
turtle.begin_fill()
for i in range(5):
    turtle.forward(40)
    turtle.right(144)
turtle.end_fill()
turtle.penup()
turtle.goto(-95,140)
turtle.pendown()
turtle.begin_fill()
for i in range(5):
    turtle.forward(40)
    turtle.right(144)
turtle.end_fill()

 

posted @ 2017-09-11 17:18  杨小宏  阅读(166)  评论(0编辑  收藏  举报