for循环:用turtle画一颗五角星
import turtle
turtle. pencolor('blue')
turtle. fillcolor('purple')
turtle.begin_fill()
while True:
turtle. forward(100)
turtle. right (150)
if abs(turtle. position())<1:
break
turtle.end_fill()
turtle.done()

import turtle
turtle. pencolor('blue')
turtle. fillcolor('purple')
turtle.begin_fill()
while True:
turtle. forward(100)
turtle. right (150)
if abs(turtle. position())<1:
break
turtle.end_fill()
turtle.done()
