<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takeg</author_name>
  <author_url>https://blog.hatena.ne.jp/takeg/</author_url>
  <blog_title>ベスパリブ</blog_title>
  <blog_url>https://takeg.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Python3</anon>
  </categories>
  <description>公式がそう言っているので、そうしましょう。 https://docs.python.jp/3/library/stdtypes.html 文字列中の部分文字列検索 注釈 find() メソッドは、 sub の位置を知りたいときにのみ使うべきです。 sub が部分文字列であるかどうかのみを調べるには、 in 演算子を使ってください: &gt;&gt;&gt; &gt;&gt;&gt; 'Py' in 'Python' True 辞書にキーが存在するかを調べる &gt;&gt;&gt; &gt;&gt;&gt; dict = {} &gt;&gt;&gt; dict[&quot;A&quot;] = 1 &gt;&gt;&gt; dict[&quot;B&quot;] = 2 &gt;&gt;&gt; dict[&quot;C&quot;] = 3 &gt;&gt;&gt; &quot;A&quot; in dict…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakeg.hatenadiary.jp%2Fentry%2F2017%2F05%2F17%2F215053&quot; title=&quot;python3では文字列中の部分文字列検索や辞書にキーが存在するかはin演算子を使おう - ベスパリブ&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>2017-05-17 21:50:53</published>
  <title>python3では文字列中の部分文字列検索や辞書にキーが存在するかはin演算子を使おう</title>
  <type>rich</type>
  <url>https://takeg.hatenadiary.jp/entry/2017/05/17/215053</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
