<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kabegiwakun</author_name>
  <author_url>https://blog.hatena.ne.jp/kabegiwakun/</author_url>
  <blog_title>かべぎわブログ</blog_title>
  <blog_url>https://www.kabegiwablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>Pythonで配列の中に特定の要素がはいているのかや、それが何個入っているのかなどを確認する方法3つをご紹介します。 index()で要素の位置を確認する inで要素が存在するか確認する count()で要素の個数を計算する 前提として以下のような配列があるとする。 wawawa_array = ['AAA','BBB','CCC'] index()で要素の位置を確認する BBBのあるオフセットを返してくれる。 &gt;&gt;&gt; wawawa_array.index('BBB') 1 存在しない場合はエラーになる。 &gt;&gt;&gt; wawawa_array.index('DDD') File &quot;./hairet…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.kabegiwablog.com%2Fentry%2F2018%2F08%2F23%2F100000&quot; title=&quot;Pythonで配列の中の要素を確認する3つの方法 - かべぎわブログ&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://cdn-ak.f.st-hatena.com/images/fotolife/k/kabegiwakun/20180115/20180115220028.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-08-23 10:00:00</published>
  <title>Pythonで配列の中の要素を確認する3つの方法</title>
  <type>rich</type>
  <url>https://www.kabegiwablog.com/entry/2018/08/23/100000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
