<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>azuuun</author_name>
  <author_url>https://blog.hatena.ne.jp/azuuun/</author_url>
  <blog_title>ざっくりん雑記</blog_title>
  <blog_url>https://azuuun-memorandum.hatenablog.com/</blog_url>
  <categories>
    <anon>備忘録</anon>
    <anon>python</anon>
  </categories>
  <description>if __name__ == '__main__': って何？ サンプルコードにも頻出するこの__name__属性。 Pythonを勉強し始めて3日ぐらいのときに一度調べたのだけど「？？？」な感じだった。 で、きょう今一度調べてみるとやっと理解できた。 Pythonを始めて3日目の自分でも理解できるようにやたら冗長に説明するメモを残したいと思う。(しつこいくらいに同じこと言ってる) 例えば test.py というスクリプトを書いたとする。 #!/usr/bin/env python # -*- coding: utf-8 -*- def shout(): print u&quot;ウェーイｗ&quot; prin…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fazuuun-memorandum.hatenablog.com%2Fentry%2F2015%2F05%2F09%2F002549&quot; title=&quot;Python - if __name__ == &amp;#39;__main__&amp;#39;: の意味 - ざっくりん雑記&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>http://cdn-ak.f.st-hatena.com/images/fotolife/a/azuuun/20150509/20150509121614.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-05-09 00:25:49</published>
  <title>Python - if __name__ == '__main__': の意味</title>
  <type>rich</type>
  <url>https://azuuun-memorandum.hatenablog.com/entry/2015/05/09/002549</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
