叠加等边三角形绘制

import  turtle as t
t.setup(650,500,250,250)
t.penup()
t.fd(150)
t.pendown()
t.pensize(15)
t.color("purple")
t.fd(100)
t.seth(-120)
t.fd(100)
t.seth(120)
t.fd(100)
t.seth(-120)
t.fd(100)
t.seth(0)
t.fd(200)
t.seth(120)
t.fd(200)
t.seth(-120)
t.fd(100)
t.done()

原文地址:https://www.cnblogs.com/Cute-pig/p/12496496.html