<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shuzo_kino</author_name>
  <author_url>https://blog.hatena.ne.jp/shuzo_kino/</author_url>
  <blog_title>Bye Bye Moore</blog_title>
  <blog_url>https://shuzo-kino.hateblo.jp/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>リスト内包表記はforをデータ型の中でブン回して新しいリスト系データをつくる方法です。 今まで何となく使ってましたが、ちゃんと名前が付いてるんですね。 正規表現みたいなモンで最初は癖があっても慣れれば簡潔かつ高速に欲しいデータを記述できます。 実際のところ 例えば…… 0x1 ~ 0xfの内、2の倍数のモノを二ビットシフト（四倍）したもの なる条件を満たした配列を作るには以下のようにします。 [ x &lt;&lt; 2 for x in range(0x1,0xf) if x%2 == 0 ] # [8, 16, 24, 32, 40, 48, 56] あるいは、 foobarという文字列の内、o以外の…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2016%2F08%2F21%2F234944&quot; title=&quot;リスト内包表記なる魔界記法　その１：配列型 - Bye Bye Moore&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>2016-08-21 23:49:44</published>
  <title>リスト内包表記なる魔界記法　その１：配列型</title>
  <type>rich</type>
  <url>https://shuzo-kino.hateblo.jp/entry/2016/08/21/234944</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
