五星红旗
import turtle turtle.setup(500,300,0,0) turtle.bgcolor('red') turtle.color('yellow') turtle.fillcolor('yellow') def mygoto(x,y): turtle.pemup() turtle.goto(x,y) turtle.pendown() def draw5jx(): turtle.begin_fill() for i in range(5): turtle.forward(90) turtle.right(144) turtle.end_fill() #### mygoto(-90,120) turtle.begin_fill() for i in range(5): turtle.forward(40) turtle.right(144) turtle.end_fill()