{"provider_url":"https://hatena.blog","width":"100%","description":"print \u3053\u3093\u306a\u3088\u3046\u306a\u3053\u3068\u3092\u3057\u305f\u3044\u3002 a = Gal(3, 2, 3, 2) print a\u3053\u308c\u306f\u3001__str__\u3068\u3044\u3046\u540d\u524d\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u5b9a\u7fa9\u3059\u308c\u3070\u3088\u3044\u3002http://www.python.jp/doc/release/ref/customization.html class Gal: def __init__(self, a, b = 0, c = 0, d = 1): self.a = a self.b = b self.c = c self.d = d def __str__(self): if self.d == 1: return self.str_core() else: retu\u2026","categories":["Python"],"published":"2008-06-17 00:00:00","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20080617%2Fp1\" title=\"Python\u3092\u306f\u3058\u3081\u3066\u307f\u308b\uff085\uff09 - inamori\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/inamori/","provider_name":"Hatena Blog","title":"Python\u3092\u306f\u3058\u3081\u3066\u307f\u308b\uff085\uff09","blog_url":"https://inamori.hateblo.jp/","version":"1.0","author_name":"inamori","url":"https://inamori.hateblo.jp/entry/20080617/p1","height":"190","type":"rich","blog_title":"inamori\u2019s diary","image_url":null}