可以使用Python语言的turtle库来绘制。下面是代码示例:
import turtle
colors =['red', 'blue', 'green', 'yellow']
t = turtle.Turtle()
t.speed(10)
for i in range(4):
t.color(colors[i])
t.forward(100)
t
可以使用Python语言的turtle库来绘制。下面是代码示例:
import turtle
colors =['red', 'blue', 'green', 'yellow']
t = turtle.Turtle()
t.speed(10)
for i in range(4):
t.color(colors[i])
t.forward(100)
t