<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tachikawa844</author_name>
  <author_url>https://blog.hatena.ne.jp/tachikawa844/</author_url>
  <blog_title>tachikawa844の日記</blog_title>
  <blog_url>https://tachikawa844.hatenadiary.org/</blog_url>
  <categories>
    <anon>python</anon>
    <anon>みんなのpython</anon>
  </categories>
  <description>pythonの標準モジュールには多くのクラスが既に定義されているらしいが、 独自に作ることもできるらしい。 「みんなのPython」に書かれている例の通りにブックマーククラスを定義してみる。 定義にはclass文を使って、つづいてクラスの名前を添えるらしい。やってみるとブロックを記述 できるようになる。 &gt;&gt;&gt; class Bookmark: ...クラスのブロック内ではクラスのメソッドを定義できて、メソッドの定義にはdef文を使うらしい。 第一引数にはselfという引数を添える決まりらしい。 クラスの概要を表示するメソッドを定義してみると、 &gt;&gt;&gt; class Bookmark: ... d…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftachikawa844.hatenadiary.org%2Fentry%2F20081216%2F1229412917&quot; title=&quot;クラス-クラスを作る- - tachikawa844の日記&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>2008-12-16 16:35:17</published>
  <title>クラス-クラスを作る-</title>
  <type>rich</type>
  <url>https://tachikawa844.hatenadiary.org/entry/20081216/1229412917</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
