批踢踢實業坊
›
看板
Python
關於我們
聯絡資訊
返回看板
作者
thefattiger (LawTea)
看板
Python
標題
Re: [問題] list中的list
時間
Wed Sep 12 22:35:43 2018
list2=sorted(list1,key=lambda l:-len(l)) 想要in place的話可以用list1.sort list3=[i for l in list1 for i in l] --
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 58.114.212.150
※ 文章網址:
https://www.ptt.cc/bbs/Python/M.1536762945.A.A5B.html
→
tommy5617
: 謝謝:)
09/13 00:06