상세 컨텐츠

본문 제목

Sorting lists by word length

Python

by techbard 2012. 5. 9. 17:28

본문

반응형

Sorting lists by word length


http://www.daniweb.com/software-development/python/threads/54348/sorting-lists-by-word-length-how-do-i-do-it


words = sorted(words, key = lambda str: len(str))

반응형

관련글 더보기

댓글 영역