一、等边三角形方法

import turtle
import time
t = turtle.Turtle()
def sanjiao(lenght,color):
    t.fillcolor(color)
    t.begin_fill()
    jiaodu = [240,120,120]
    for i in jiaodu:
        t.lt(i)
        t.fd(lenght)
    t.end_fill()
sanjiao(100,"red")
time.sleep(10)

  

相关文章:

  • 2022-12-23
  • 2021-12-20
  • 2021-11-17
  • 2021-09-09
  • 2022-02-22
  • 2021-11-19
  • 2021-07-01
  • 2021-12-15
猜你喜欢
  • 2022-12-23
  • 2021-08-05
  • 2021-09-11
  • 2022-12-23
  • 2021-12-07
相关资源
相似解决方案