叠加三角形

import turtle
turtle.color ("red","yellow")
turtle.begin_fill ()
while True:
    turtle.forward(100)
    turtle.right(120)
    if abs(turtle.pos())<1:
        break
turtle.fd(50)
turtle.right(60)
for i in range(3):
    turtle.fd(50)
    turtle.right(120) 
turtle.hideturtle ()
turtle.end_fill()
turtle.done

  

 

posted @ 2020-10-06 15:13  小C+  阅读(73)  评论(0编辑  收藏  举报