标签:imp tle col forward div code rtl pen logs
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()
标签:imp tle col forward div code rtl pen logs
原文地址:http://www.cnblogs.com/wlh353/p/7506164.html