{"url":"https://azuuun-memorandum.hatenablog.com/entry/2015/05/09/002549","categories":["\u5099\u5fd8\u9332","python"],"blog_title":"\u3056\u3063\u304f\u308a\u3093\u96d1\u8a18","image_url":"http://cdn-ak.f.st-hatena.com/images/fotolife/a/azuuun/20150509/20150509121614.jpg","description":"if __name__ == '__main__': \u3063\u3066\u4f55\uff1f \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306b\u3082\u983b\u51fa\u3059\u308b\u3053\u306e__name__\u5c5e\u6027\u3002 Python\u3092\u52c9\u5f37\u3057\u59cb\u3081\u30663\u65e5\u3050\u3089\u3044\u306e\u3068\u304d\u306b\u4e00\u5ea6\u8abf\u3079\u305f\u306e\u3060\u3051\u3069\u300c\uff1f\uff1f\uff1f\u300d\u306a\u611f\u3058\u3060\u3063\u305f\u3002 \u3067\u3001\u304d\u3087\u3046\u4eca\u4e00\u5ea6\u8abf\u3079\u3066\u307f\u308b\u3068\u3084\u3063\u3068\u7406\u89e3\u3067\u304d\u305f\u3002 Python\u3092\u59cb\u3081\u30663\u65e5\u76ee\u306e\u81ea\u5206\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u3084\u305f\u3089\u5197\u9577\u306b\u8aac\u660e\u3059\u308b\u30e1\u30e2\u3092\u6b8b\u3057\u305f\u3044\u3068\u601d\u3046\u3002(\u3057\u3064\u3053\u3044\u304f\u3089\u3044\u306b\u540c\u3058\u3053\u3068\u8a00\u3063\u3066\u308b) \u4f8b\u3048\u3070 test.py \u3068\u3044\u3046\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u3044\u305f\u3068\u3059\u308b\u3002 #!/usr/bin/env python # -*- coding: utf-8 -*- def shout(): print u\"\u30a6\u30a7\u30fc\u30a4\uff57\" prin\u2026","type":"rich","height":"190","version":"1.0","provider_url":"https://hatena.blog","blog_url":"https://azuuun-memorandum.hatenablog.com/","width":"100%","author_url":"https://blog.hatena.ne.jp/azuuun/","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fazuuun-memorandum.hatenablog.com%2Fentry%2F2015%2F05%2F09%2F002549\" title=\"Python - if __name__ == &#39;__main__&#39;: \u306e\u610f\u5473 - \u3056\u3063\u304f\u308a\u3093\u96d1\u8a18\" 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":"azuuun","title":"Python - if __name__ == '__main__': \u306e\u610f\u5473","published":"2015-05-09 00:25:49"}