叠加等边三角形绘制

import turtle as tt
tt.setup(450,350,200,200)
tt.pensize(2)
tt.pencolor("red")
tt.fillcolor("purple")
for i in range(3):
  tt.forward(100)
  tt.right(120)
tt.left(60)
tt.forward(100)
for j in range(2):
  tt.right(120)
  tt.forward(200)
tt.right(120)
tt.forward(100)
tt.Turtle().write("叠加等边三角形",font=("宋体",15,"bold"))

 

posted on 2021-01-11 16:21  RUNFIFA  阅读(104)  评论(0)    收藏  举报