叠加等边三角形绘制

import turtle as t
t.pencolor("black")
t.penup()
t.fd(-80)
t.pendown()
t.fd(200)
t.seth(120)
t.fd(200)
t.seth(-120)
t.fd(200)
t.seth(0)
t.fd(100)
t.seth(60)
t.fd(100)
t.seth(180)
t.fd(100)
t.seth(-60)
t.fd(100)
t.seth(120)
t.fd(100)
t.seth(0)
t.done()

 

posted @ 2020-03-12 00:11  youngTW  阅读(150)  评论(0)    收藏  举报