Python绘制等边三角形,使用turtle库中turtle.fd( )函数和turtle.seth( )
import turtle
turtle.pencolor(“red”)
turtle.penup()
turtle.fd(-250)
turtle.pd()
turtle.pensize(5)
turtle.fd(200)
turtle.seth(120)
turtle.fd(200)
turtle.seth(60)
turtle.fd(-200)
turtle.seth(120)