叠加等边三角形

 1 import turtle as t
 2 t.pencolor("black") 
 3 
 4 t.fd(200)
 5 t.seth(120)
 6 t.fd(200)
 7 t.seth(-120)
 8 t.fd(200)
 9 
10 t.seth(0)
11 t.fd(100)
12 t.seth(60)
13 t.fd(100)
14 t.seth(180)
15 t.fd(100)
16 t.seth(-60)
17 t.fd(100)
18 t.seth(120)
19 t.fd(100)
20 t.seth(0)
21 t.done()

原文地址:https://www.cnblogs.com/sonder22/p/13670052.html