open:python-filter

python filter

next는 첫번째 값

result = next(filter(lambda x: x['id'] == product_id, result_list), None)

product_list = sorted(product_qs, key=lambda x: x.dist)


  • open/python-filter.txt
  • 마지막으로 수정됨: 2021/02/08 07:25
  • 저자 127.0.0.1