<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kikiki-kiki</author_name>
  <author_url>https://blog.hatena.ne.jp/kikiki-kiki/</author_url>
  <blog_title>かもメモ</blog_title>
  <blog_url>https://chaika.hatenablog.com/</blog_url>
  <categories>
    <anon>Python3</anon>
  </categories>
  <description>データを突っ込む初期値として [0, 0, 0] とか [[], [], []] みたいな配列を作りたい * n で要素を繰り返した配列が作れる data = [0] * 3 # [0, 0, 0] * n する配列の要素全てが n 回繰り返される data = [1, 2, 3] * 3 # [1, 2, 3, 1, 2, 3, 1, 2, 3] 要素に配列や辞書を持つリスト作成は注意が必要 * n の繰り返しは同じ要素を繰り返しているので参照値である配列や辞書は同じ参照を持つものが繰り返されてしまうので注意が必要 配列 data = [[]] * 3 # [[], [], []] data…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2021%2F05%2F17%2F160000&quot; title=&quot;Python3 要素が n の配列を生成したい  - かもメモ&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://m.media-amazon.com/images/I/41bvqm8ANOL._SL500_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-05-17 16:00:00</published>
  <title>Python3 要素が n の配列を生成したい </title>
  <type>rich</type>
  <url>https://chaika.hatenablog.com/entry/2021/05/17/160000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
