<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>melpon</author_name>
  <author_url>https://blog.hatena.ne.jp/melpon/</author_url>
  <blog_title>melpon日記 - HaskellもC++もまともに扱えないへたれのページ</blog_title>
  <blog_url>https://melpon.hatenadiary.org/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>この記事は Python Tips Advent Calendar 2012 ９日目の記事です。 まず、list, set, dict は、それらを生成するための専用の構文を持っています。 &gt;&gt;&gt; [1,2,3] # リスト生成 [1, 2, 3] &gt;&gt;&gt; {1,2,3} # 集合生成 set([1, 2, 3]) &gt;&gt;&gt; {1:1,2:2,3:3} # 辞書生成 {1: 1, 2: 2, 3: 3} この構文を拡張した形で list, set, dict の内包表記が書けます。 &gt;&gt;&gt; xs = [1,2,3] &gt;&gt;&gt; [x for x in xs] # リスト内包表記 [1, 2, 3] …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmelpon.hatenadiary.org%2Fentry%2F20121209%2F1355051952&quot; title=&quot;内包表記いろいろ - melpon日記 - HaskellもC++もまともに扱えないへたれのページ&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>2012-12-09 20:19:12</published>
  <title>内包表記いろいろ</title>
  <type>rich</type>
  <url>https://melpon.hatenadiary.org/entry/20121209/1355051952</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
