import turtle turtle.setup(800,400,0,0) turtle.bgcolor('purple') turtle.color("blue") turtle.fillcolor("red") turtle.begin_fill() for i in range(5): turtle.forward(50) turtle.right(144) turtle.end_fill() turtle.done()
转载于:https://www.cnblogs.com/fkfkfk/p/9016373.html