{"image_url":null,"title":"classmethod","categories":["Python"],"url":"https://www.shigemk2.com/entry/20130628/1372425366","provider_url":"https://hatena.blog","blog_url":"https://www.shigemk2.com/","blog_title":"by shigemk2","published":"2013-06-28 22:16:06","author_name":"shigemk2","type":"rich","height":"190","width":"100%","author_url":"https://blog.hatena.ne.jp/shigemk2/","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F20130628%2F1372425366\" title=\"classmethod - by shigemk2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"Python \u306e\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9 \u2013 \u30c7\u30b3\u30ec\u30fc\u30bf @classmethod, @staticmethod \u3092\u4f7f\u3063\u3066 | \u3059\u3050\u306b\u5fd8\u308c\u308b\u8133\u307f\u305d\u306e\u305f\u3081\u306e\u30e1\u30e2 function \u306e\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u3092\u8fd4\u3057\u307e\u3059\u3002 \u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30e1\u30bd\u30c3\u30c9\u304c\u6697\u9ed9\u306e\u7b2c\u4e00\u5f15\u6570\u3068\u3057\u3066\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u3068\u308b\u3088\u3046\u306b\u3001\u7b2c\u4e00\u5f15\u6570\u3068\u3057\u3066\u30af\u30e9\u30b9\u3092\u3068\u308a\u307e\u3059\u3002 class Hoge1: @classmethod def sayHoge(cls, x): print x + \" hoge\" Hoge1.sayHoge(\"ABC\") Hoge1().sayHoge(\"abc\") class Hoge: def sayHoge(self, x)\u2026","version":"1.0"}