Your problem is that you're only including the first value of x
, not all of them, and you need a nested list comprehension to add depth to the list structure:
lst_new = [[[x[0] * m] + x[1:] for x in lst] for m in items]
Output
[
[[0.1, 2, 3], [0.4, 5, 6], [0.7, 8, 9]],
[[0.5, 2, 3], [2.0, 5, 6], [3.5, 8, 9]],
[[0.9, 2, 3], [3.6, 5, 6], [6.3, 8, 9]]
]
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…