import turtle
turtle.pensize(2)
turtle.setup(600,400,0,0)
turtle.color("yellow")
turtle.bgcolor('red')
turtle.fillcolor("yellow")
turtle.up()
turtle.goto(-250,100)
turtle.down()
turtle.begin_fill()
for i in range(6):
   
   turtle.forward(100)
   turtle.right(144)
 
turtle.end_fill()
turtle.up()
turtle.goto(-120,160)
turtle.down()
turtle.begin_fill()
turtle.right(90)
for i in range(6):
   
   turtle.forward(20)
   turtle.right(144)
 
turtle.end_fill()

turtle.up()
turtle.goto(-100,140)
turtle.down()
turtle.begin_fill()
turtle.right(90)
for i in range(6):
   
   turtle.forward(20)
   turtle.right(144)
 
turtle.end_fill()

turtle.up()
turtle.goto(-100,100)
turtle.down()
turtle.begin_fill()
turtle.right(180)
for i in range(6):
   
   turtle.forward(20)
   turtle.right(144)

turtle.end_fill()

turtle.up()
turtle.goto(-120,40)
turtle.down()
turtle.begin_fill()
turtle.right(90)
for i in range(6):
   
   turtle.forward(20)
   turtle.right(144)
 
turtle.end_fill()
turtle.hideturtle()

 

posted on 2017-09-11 17:48  吴林鸿  阅读(90)  评论(0编辑  收藏  举报