import turtle for i in range(3): turtle.fd(200) turtle.left(120) turtle.penup() turtle.fd(100) turtle.pendown() turtle.left(60) turtle.fd(100) for i in range(2): turtle.left(120) turtle.fd(100)
如图: