Python.turtle写的四色螺旋线
import turtle
import time
turtle.setup(500,500,0,0)
turtle.bgcolor('black')
turtle.Turtle().screen.delay(0)
t=turtle.Pen()
colors=['red','yellow','blue','green',"purple"]
time.sleep(10)
for i in range(300):
t.pencolor(colors[i%5])
t.forward(i)
t.left(73)