<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lingvisticae</author_name>
  <author_url>https://blog.hatena.ne.jp/lingvisticae/</author_url>
  <blog_title>惰力飛行</blog_title>
  <blog_url>https://livingdead0812.hatenablog.com/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>リスト内包表記 リスト内包表記とは，（定義はわからないが）forループの結果をそのままリストにする書き方であり，ちょっとした応用的なpython独特の文法らしい． 内包表記を使わずにリストを定義→forループ→リストにappend，とやるより速度がだいぶ速いらしい． 基本的な書き方は， num_list = [i for i in range(3, 10, 2)] # -&gt; [3, 5, 7, 9] 内包表記にif条件を追加する場合，if文は末尾につける． num_list = [i for i in range(3, 10, 2) if i % 3 == 0] # -&gt; [3, 9] さらに…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flivingdead0812.hatenablog.com%2Fentry%2F20181016%2F1539680596&quot; title=&quot;リスト内包表記でできないかもしれないこと - 惰力飛行&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>2018-10-16 18:03:16</published>
  <title>リスト内包表記でできないかもしれないこと</title>
  <type>rich</type>
  <url>https://livingdead0812.hatenablog.com/entry/20181016/1539680596</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
