import turtle
turtle.pensize(6)
turtle.pencolor('#a1a1a1')
turtle.begin_fill()
turtle.fillcolor('red')
turtle.forward(150)
turtle.right(144)
turtle.fd(300)
turtle.right(144)
turtle.fd(300)
turtle.right(144)
turtle.fd(300)
turtle.right(144)
turtle.fd(300)
turtle.right(144)
turtle.fd(300)
turtle.end_fill()
turtle.fillcolor('yellow')
turtle.begin_fill()
for i in range(6):
turtle.pencolor('#010101')
turtle.fd(150)
turtle.right(144)
turtle.end_fill()
------------------------------
以下是题外话:
没啥好说的,很简单,最多就是个函数引用的事