<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kobakoba0723</author_name>
  <author_url>https://blog.hatena.ne.jp/kobakoba0723/</author_url>
  <blog_title>kobakoba0723の日記</blog_title>
  <blog_url>https://kobakoba0723.hatenadiary.org/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>リストのリスト リストのかけ算をする時には気をつけなければいけない。 リストのかけ算は、リストの要素を乗数分新しく作るのではなく、同じ要素に対する参照を乗数分作るだけ。 # ベタにリストのリストを作る &gt;&gt;&gt; multi1 = [[0, 0, 0], [0, 0, 0], [0, 0, 0]] # 各要素は別のリストオブジェクトを参照している &gt;&gt;&gt; multi1[0] is multi1[1] False # リストのかけ算でリストのリストを作る &gt;&gt;&gt; multi2 = [[0, 0, 0]] * 3 # 各要素は同じリストオブジェクトを参照している &gt;&gt;&gt; multi2[0] is mu…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkobakoba0723.hatenadiary.org%2Fentry%2F20110710%2F1310298270&quot; title=&quot;Pythonクックブック(4章) - kobakoba0723の日記&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://images-fe.ssl-images-amazon.com/images/I/51cRlQr16OL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-07-10 20:44:30</published>
  <title>Pythonクックブック(4章)</title>
  <type>rich</type>
  <url>https://kobakoba0723.hatenadiary.org/entry/20110710/1310298270</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
