import turtle turtle.pensize(1) turtle.pencolor("black") #画笔黑色 turtle.left(60) #绘制三角形# for _ in range(3): turtle.forward(200) turtle.right(120) #调整 turtle.penup() turtle.forward(100) turtle.right(120) turtle.pendown() #绘制三角形# for _ in range(3): turtle.forward(100) turtle.left(120)