dictionary sort

python 2018. 2. 19. 10:43

sorted(d.items(), key=lambda x: x[1])


key로 정렬 - x[0]

'python' 카테고리의 다른 글

jupyter notebook 비밀번호 변경  (0) 2021.09.28
python 오브젝트 함수,변수 리스트  (0) 2018.04.02
디렉토리 순회  (0) 2018.03.09
python2 utf8인코딩  (0) 2017.07.29
python string to dict or list etc...  (0) 2016.12.29
Posted by rjh
,