画叠加的等边三角形

import turtle as t
t.pencolor("red")
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-25 13:49  liuchun玲  阅读(129)  评论(0编辑  收藏  举报