{"published":"2015-10-06 13:18:48","blog_url":"https://hideharaaws.hatenablog.com/","height":"190","description":"python \u66f8\u3044\u3066\u308b\u3068\u201d\u3075\u3068\u201d\u6c17\u306b\u306a\u308b self \u3068 cls \u3092\u8abf\u3079\u30e1\u30e2\u3002\u306a\u3093\u3067\u66f8\u304f\u306e\u304b\u306a\u3041\u3068\u3044\u3046\u7591\u554f\u304c\u89e3\u6d88\u3059\u308b\u3068\u3001\u7d50\u69cb\u6c17\u6301\u3061\u3088\u304f\u304b\u3051\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u6c17\u304c\u3057\u307e\u3059\u3002\u66f8\u3044\u3066\u308b\u4eba\u306b\u306f\u3001\u3042\u305f\u308a\u307e\u3048\u8a71\u3067\u3059\u3044\u307e\u305b\u3093\u3002# \u5404\u7a2e\u30e1\u30bd\u30c3\u30c9\u3068\u304b\u30b9\u30b3\u30fc\u30d7\u306b\u3064\u3044\u3066\u306f\u3001\u4f55\u3082\u8aac\u660e\u306a\u3044\u306e\u3067\u3001\u5225\u306e\u30b5\u30a4\u30c8\u307f\u3066\u78ba\u8a8d\u304f\u3060\u3055\u3044 self \u306b\u3064\u3044\u3066 \u30af\u30e9\u30b9\u306e\u4e2d\u3067\u5b9a\u7fa9\u3059\u308b \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30fb\u30e1\u30bd\u30c3\u30c9 (instance method)\u3067\u306f\u3001\u5fc5\u305a\u7b2c\u4e00\u5f15\u6570\u306b self \u3092\u66f8\u304d\u307e\u3059\u3002 class MyClass(object): def instance_method(self, x, y): print x+y my = MyClass() m\u2026","image_url":null,"author_name":"hidehara","type":"rich","width":"100%","provider_name":"Hatena Blog","url":"https://hideharaaws.hatenablog.com/entry/2015/10/06/131848","blog_title":"AWS / PHP / Python \u3061\u3087\u3044\u30e1\u30e2","provider_url":"https://hatena.blog","categories":["python"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhideharaaws.hatenablog.com%2Fentry%2F2015%2F10%2F06%2F131848\" title=\"self \u3068 cls \u3068\u304b\u304c\u4f55\u304b\u6c17\u306b\u306a\u3063\u3066\u8abf\u3079\u3066\u307f\u305f + @staticmethod - AWS / PHP / Python \u3061\u3087\u3044\u30e1\u30e2\" 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/hidehara/","title":"self \u3068 cls \u3068\u304b\u304c\u4f55\u304b\u6c17\u306b\u306a\u3063\u3066\u8abf\u3079\u3066\u307f\u305f + @staticmethod","version":"1.0"}