<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>neginegitoro</author_name>
  <author_url>https://blog.hatena.ne.jp/neginegitoro/</author_url>
  <blog_title>ねぎとろ放浪記</blog_title>
  <blog_url>https://neginegitoro.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>リストの初期化が簡単にできる。 使えるようにしとくと便利らしい。 基本的には以下のように書く。 [i for i in 配列とか範囲とか] 具体的にやってみる。 test_list = [i for i in range(0,10)] print(test_list) 出力は [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] となる。 また、条件を付け加えることもできる。 test_list = [i for i in range(0,10) if i%2 == 0] print(test_list) iを2で割って余りが０のものだけリストに入れている。 [0, 2, 4, 6, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fneginegitoro.hatenablog.com%2Fentry%2F2019%2F12%2F15%2F163646&quot; title=&quot;Pythonでリスト内包表記 - ねぎとろ放浪記&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>2019-12-15 16:36:46</published>
  <title>Pythonでリスト内包表記</title>
  <type>rich</type>
  <url>https://neginegitoro.hatenablog.com/entry/2019/12/15/163646</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
