#导入turtle模块,起别名t import turtle as t #画第一条边 t.forward(100) #画边长为100的线段 t.left(120) #原地左转120度 #画第二条边 t.forward(100) #画边长为100的线段 t.left(120) #原地左转120度 #画第三条边 t.forward(100) #画边长为100的线段 t.left(120) #原地左转120度 t.done()