Python/Python__works

lambda

말하는감자 2019. 7. 14. 17:40

points = [{x:2, y:3}, {x:4, y:1}]
points.sort(key = lambda i : i[y])
print(points)

'Python > Python__works' 카테고리의 다른 글

python json to xml OR xml to json ... 과연 정확하게 되고 있는가?  (0) 2019.09.18
openpyxl  (0) 2019.07.18
python lambda  (0) 2019.07.14
list 거꾸로 출력하기  (0) 2019.07.08
conda 가상환경  (0) 2019.06.13