📜  展平列表 python 代码示例

📅  最后修改于: 2022-03-11 14:46:15.877000             🧑  作者: Mango

代码示例4
list_of_lists = [[180.0], [173.8], [164.2], [156.5], [147.2], [138.2]] 
flattened = [val for sublist in list_of_lists for val in sublist