开发者

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)]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜