<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kslabo51</author_name>
  <author_url>https://blog.hatena.ne.jp/kslabo51/</author_url>
  <blog_title>ビジネスパーソン・ガジェット置場　empty lot for business</blog_title>
  <blog_url>https://arachnes-web.hatenablog.jp/</blog_url>
  <categories>
    <anon>操作_リスト</anon>
    <anon>lambda</anon>
  </categories>
  <description>備忘録です。 今回はlambdaを利用して辞書やタプルで要素を構成しているリストを並び替える方法です。 python:lambdaを利用した並び替え 辞書が入ったリストを、あるキーの値で並び替える data = [ {&quot;name&quot;: &quot;bread&quot;, &quot;price&quot;: 100}, {&quot;name&quot;: &quot;wine&quot;, &quot;price&quot;: 138}, {&quot;name&quot;: &quot;meat&quot;, &quot;price&quot;: 15}, {&quot;name&quot;: &quot;water&quot;, &quot;price&quot;: 1} ] 上記のような辞書をリスト化したものの並び替えを行う場合、例えば「price」の値でソートしたいという場合、lambdaをsort…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Farachnes-web.hatenablog.jp%2Fentry%2F2022%2F07%2F16%2F120500&quot; title=&quot;python: 辞書やタプルで要素を構成しているリストを並び替える方法（lambda) - ビジネスパーソン・ガジェット置場　empty lot for business&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/k/kslabo51/20220716/20220716120424.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-07-16 12:05:00</published>
  <title>python: 辞書やタプルで要素を構成しているリストを並び替える方法（lambda)</title>
  <type>rich</type>
  <url>https://arachnes-web.hatenablog.jp/entry/2022/07/16/120500</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
