# this [[x,10*x] for x in [1,2,3]] # will result in unflattened [[1,10],[2,20],[3,30]]
[y for x in [1,3] for y in [x,10*x]]
只需添加另一个列表解析.