import turtle
import time turtle.pensize(1) turtle.pencolor("black") turtle.fillcolor("red") #绘制五角星# turtle.begin_fill() for _ in range(5): turtle.forward(200) turtle.right(144) turtle.end_fill() time.sleep(1) turtle.mainloop()
import time turtle.pensize(1) turtle.pencolor("black") turtle.fillcolor("red") #绘制五角星# turtle.begin_fill() for _ in range(5): turtle.forward(200) turtle.right(144) turtle.end_fill() time.sleep(1) turtle.mainloop()