{"blog_title":"\u3068\u3076\u30ab\u30a8\u30eb","type":"rich","image_url":null,"description":"\u4eca\u56de\u306f\u30af\u30e9\u30b9\u3067\u3059\u3002 class Book: def print_out(self): print u\"[Book\u30af\u30e9\u30b9]\" \u30af\u30e9\u30b9\u5ba3\u8a00\u3001\u95a2\u6570\u306e\u5ba3\u8a00\u3001\u51e6\u7406\u5185\u5bb9\u3068\u8a00\u3063\u305f\u611f\u3058\u3067\u3059\u3002 \u5f15\u6570\u306eself\u306f\u5fc5\u9808\u3089\u3057\u3044\u3067\u3059\u3002\u81ea\u5206\u81ea\u8eab\u3092\u6307\u3059(Java\u3067\u8a00\u3046this?)\u307f\u305f\u3044\u3067\u3059\u3002 a = Book() a.print_out() >> [Book\u30af\u30e9\u30b9] \u3053\u3093\u306a\u611f\u3058\u3067\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3057\u3066\u4f7f\u7528\u3057\u307e\u3059\u3002# \u7279\u6b8a\u30e1\u30bd\u30c3\u30c9\u306b\u3064\u3044\u3066 __init__(self, name, count): Java\u3067\u8a00\u3046\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf __str__(self): \u6587\u5b57\u5217\u8868\u73fe\u3092\u8fd4\u3059(Java\u3067\u8a00\u3046toString()) \u306a\u3069\u306a\u3069\u591a\u6570\u3002\u304a\u3044\u2026","published":"2008-06-16 20:28:56","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/mmrrmmtt/","url":"https://mmrrmmtt.hatenadiary.org/entry/20080616/1213615736","height":"190","provider_name":"Hatena Blog","title":"\u307f\u3093\u306a\u306ePython\u8aad\u66f8\u4f1a#7","blog_url":"https://mmrrmmtt.hatenadiary.org/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmmrrmmtt.hatenadiary.org%2Fentry%2F20080616%2F1213615736\" title=\"\u307f\u3093\u306a\u306ePython\u8aad\u66f8\u4f1a#7 - \u3068\u3076\u30ab\u30a8\u30eb\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Python"],"width":"100%","author_name":"mmrrmmtt","version":"1.0"}