<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kotsubu-chan</author_name>
  <author_url>https://blog.hatena.ne.jp/kotsubu-chan/</author_url>
  <blog_title>続・ひよ子のきもち</blog_title>
  <blog_url>https://kotsubu-chan.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>OOP による解法への準備 OOP による解法を示す前に、前述した事例を再考します。 ■ 事例：16進表記 前述した《事例》をクラスを用いて再構成すると、次のようになります。「指折り数えて何番目になるか」というメッセージを忠実に再現すると、次のようになります。 class HexDemo(object): インスタンス属性 self.hex が保持する各各要素（長さ１の文字列）e を順にたどりながら、条件式 s == e を満たすときのオフセット n をリターン値とします。一致するものがないときには、-1 をリターン値とします。 各要素を順にたどりながら、条件を満たすときの値を得ることが「指折…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkotsubu-chan.hatenadiary.org%2Fentry%2F20090717%2F1248616167&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>2009-07-17 22:49:27</published>
  <title>@</title>
  <type>rich</type>
  <url>https://kotsubu-chan.hatenadiary.org/entry/20090717/1248616167</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
