import turtle
turtle.setup(500,500)
turtle.fillcolor("red")
turtle.penup
turtle.bk(150)
turtle.pendown
turtle.begin_fill()
for i in range(5):
turtle.fd(300)
turtle.right(144)
turtle.end_fill()
turtle.done
原文:https://www.cnblogs.com/dongchidachi/p/12500894.html