![](https://i-blog.csdnimg.cn/blog_migrate/111c3d6858aaf721a6353d0abc5944d5.png)
import turtle turtle.bgcolor('red') turtle.pencolor('yellow') turtle.fillcolor('yellow') turtle.begin_fill() for i in range(5): turtle.forward(100) turtle.right(144) turtle.end_fill() turtle.done()
import turtle turtle.bgcolor('red') turtle.pencolor('yellow') turtle.fillcolor('yellow') turtle.begin_fill() for i in range(5): turtle.forward(100) turtle.right(144) turtle.end_fill() turtle.done()
转载于:https://www.cnblogs.com/Millie/p/9016548.html