我有一个这样的数据示例列表:
list_ = [
(['0.640', '0.630', '0.64'], ['0.61', '0.65', '0.53']),
(['20.00', '21.00', '21.00'], ['21.00', '22.00', '22.00']),
(['0.025', '0.025', '0.026'], ['0.150', '0.150', '0.130'])
]
我试图将元组中的所有列表合并到元组中,这将是元组列表的结果。
现在我想得到一个合并列表如下
output = [
('0.640', '0.630', '0.64', '0.61', '0.65', '0.53'),
('20.00', '21.00', '21.00', '21.00', '22.00', '22.00'),
('0.025', '0.025', '0.026', '0.150', '0.150', '0.130')
]
# or
output = [
['0.640', '0.630', '0.64', '0.61', '0.65', '0.53'],
['20.00', '21.00', '21.00', '21.00', '22.00', '22.00'],
['0.025', '0.025', '0.026', '0.150', '0.150', '0.130']
]
任何帮助表示赞赏。提前致谢!
守着星空守着你
料青山看我应如是
ITMISS
相关分类