looping through list of lists
How can I do 开发者_如何学Pythonthis: coord + float(y) - float(x)
out = [[ coord - float(y) for v in V ] for y in y_coord ]
out = [[ coord + float(x) for v in V ] for x in x_coord ]
out = [[coord + float(y) - float(x) for v in V] for x,y in zip(x_coord, y_coord)]
精彩评论