for i in range(5):
turtle.up()
turtle.goto(locationa)
turtle.width(5)
turtle.pencolor(color)
turtle.down()
turtle.circle(50)
---------------
以上有错误,应改为
for i in range(5):
turtle.up()
turtle.goto(locationa[i])
turtle.width(5)
turtle.pencolor(color[i])
turtle.down()
turtle.circle(50)