import turtle
turtle.pencolor('yellow')
turtle.fillcolor('green')
turtle.begin_fill()
while True:
turtle.forward(100)
turtle.right(155)
if (abs(turtle.pos()))<1:
break
turtle.end_fill()
turtle.done()
import turtle
turtle.pencolor('yellow')
turtle.fillcolor('green')
turtle.begin_fill()
while True:
turtle.forward(100)
turtle.right(155)
if (abs(turtle.pos()))<1:
break
turtle.end_fill()
turtle.done()
转载于:https://www.cnblogs.com/Sally-0820/p/9016852.html