回复 6楼 古123
import turtle
q = turtle.Pen()
turtle.bgcolor("black")
sides = 7
colors =
["red","orange","yellow","green","cyan","blue","purple"]
for x in range(360):
q.pencolor(colors[x%sides])
q.forward(x*3/sides+x)
q.left(360/sides+1)
q.width(x*sides/200)