python绘图

import turtle as t
t.bgcolor("black")
sides = 2
colors =["red","yellow","blue","orange","green","purple","pink"]
for x in range(270):
    t.pencolor(colors[x%sides])
    t.fd(x*2)
    t.left(360/sides+1)
    t.width(x*sides/150)
t.done()