{"author_url":"https://blog.hatena.ne.jp/shuzo_kino/","blog_title":"Bye Bye Moore","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2016%2F11%2F30%2F225016\" title=\"&quot;if __name__ == &#39;__main__&#39;:&quot;\u3068\u3044\u3046\u69cb\u6587 - Bye Bye Moore\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"shuzo_kino","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","url":"https://shuzo-kino.hateblo.jp/entry/2016/11/30/225016","description":"\"if __name__ == '__main__':\"\u3068\u3044\u3046\u69cb\u6587\u3092\u3088\u304f\u898b\u304b\u3051\u307e\u3059\u306d\u3002 \u3053\u308c\u306f\u3001\u516c\u5f0f\u3060\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002 A module\u2019s __name__ is set equal to '__main__' when read from standard input, a script, or from an interactive prompt. \u307e\u3041\u3001\u8981\u3059\u308b\u306b\u30b7\u30a7\u30eb\u306a\u308aREPL\u306a\u308a\u304b\u3089\u3084\u308c\u3070\u3001\u57fa\u672c\u7684\u306b'__name__'\u306b\u306f '__main__'\u304c\u5165\u3063\u3066\u3044\u308b\u3063\u3066\u4e8b\u3067\u3059\u3002 \u5b9f\u969b\u306e\u3068\u3053\u308d #!/usr/bin/python import sys def main(argv\u2026","height":"190","version":"1.0","width":"100%","type":"rich","blog_url":"https://shuzo-kino.hateblo.jp/","title":"\"if __name__ == '__main__':\"\u3068\u3044\u3046\u69cb\u6587","published":"2016-11-30 22:50:16","categories":["python"],"image_url":null}