<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rennnosukesann</author_name>
  <author_url>https://blog.hatena.ne.jp/rennnosukesann/</author_url>
  <blog_title>Ren's blog</blog_title>
  <blog_url>https://rennnosukesann.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>pythonにはデコレータ構文が標準で実装されている。デコレータを使うことで、既存の関数に対し簡単に別の機能を付加（デコレート）することができる。 例えば、以下の様なコードを書いたとする。 def cake(): print(&quot;cake&quot;) cake() とくれば、もちろん出力は cake となる。 次に、新たな関数を以下のように書き加えてみる。 def chocolate(func): print(&quot;chocolate&quot;) func() @chocolate def cake(): print(&quot;cake&quot;) cake 出力： chocolate cake 出力結果を見ると、cake()の出…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frennnosukesann.hatenablog.com%2Fentry%2F2015%2F06%2F12%2F234344&quot; title=&quot;【python】デコレータ - Ren&amp;#39;s blog&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>2015-06-12 23:43:44</published>
  <title>【python】デコレータ</title>
  <type>rich</type>
  <url>https://rennnosukesann.hatenablog.com/entry/2015/06/12/234344</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
