<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shuzo_kino</author_name>
  <author_url>https://blog.hatena.ne.jp/shuzo_kino/</author_url>
  <blog_title>Bye Bye Moore</blog_title>
  <blog_url>https://shuzo-kino.hateblo.jp/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>shuzo-kino.hateblo.jp の続きです。 リスト内方表記で辞書型のデータを作る事もできます。 とはいえ、for節特有の癖から意図しない挙動をする可能性も。 実際のところ キーと値を通常の辞書型と同様の並びで実装できます。 {x:y+3 for x in &quot;foobar&quot; for y in range(0,6,1)} #&gt;&gt; {'r': 8, 'b': 8, 'o': 8, 'f': 8, 'a': 8} とはいえ……後置のforの要素は末尾しか返さないという、致命的な挙動があったりします。 キーをリスト型から生成したい場合なんかには向きませんね……。 {x:y for y in…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2016%2F08%2F25%2F143256&quot; title=&quot;リスト内包表記なる魔界記法　その２：辞書型 - Bye Bye Moore&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-08-25 14:32:56</published>
  <title>リスト内包表記なる魔界記法　その２：辞書型</title>
  <type>rich</type>
  <url>https://shuzo-kino.hateblo.jp/entry/2016/08/25/143256</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
