如何将多行列表转换为单行列表?

How to convert multiple row list to a single row list?

[[0, 0, 3, 50], [50, 100, 4, 20]]

我想将上面的列表转换为,

[0, 0, 3, 50, 50, 100, 4, 20].

我尝试使用 split() 但它不起作用。

尝试以下操作:

list_2d = [[0, 0, 3, 50], [50, 100, 4, 20]]
list_1d = [i for nested in list_2d for i in nested]
print(list_1d)