python小技巧 将二元列表转为一元列表

list=[num for row in nums for num in row]

 

posted @ 2018-04-01 10:49  Ruohua3kou  阅读(443)  评论(0编辑  收藏  举报