python绘制五角星
import turtle turtle.pensize(2) turtle.pencolor("black") turtle.fillcolor("red") turtle.begin_fill() count=1 while count<=5: turtle.forward(100) turtle.right(144) count+=1 turtle.end_fill()
import turtle turtle.pensize(2) turtle.pencolor("black") turtle.fillcolor("red") turtle.begin_fill() count=1 while count<=5: turtle.forward(100) turtle.right(144) count+=1 turtle.end_fill()