{"author_url":"https://blog.hatena.ne.jp/kaisk/","version":"1.0","categories":["Python"],"title":"self\u3063\u3066\u306a\u3093\u3058\u3083","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkaisk.hatenadiary.com%2Fentry%2F2014%2F10%2F18%2F010856\" title=\"self\u3063\u3066\u306a\u3093\u3058\u3083 - keisuke\u306e\u30d6\u30ed\u30b0\" 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\u3067class\u3092\u5b9a\u7fa9\u3059\u308b\u6642\u3001method\u306e\u5f15\u6570\u3084\u30e1\u30f3\u30d0\u5909\u6570\u306a\u3069\u306b\u51fa\u73fe\u3059\u308bself\u3002 \u3042\u308c\u306f\u305d\u306e\u30af\u30e9\u30b9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6307\u3057\u3066\u3044\u308b\u3002obj = Cls(x, y)\u306a\u3069\u3068\u30aa\u30d6\u30b8\u30a7\u30af\u30c8obj\u3092\u751f\u6210\u3059\u308b\u3068\u3001\u30af\u30e9\u30b9Cls\u306eself\u306bobj\u304c\u4f7f\u308f\u308c\u308b\u3002 \u5b9f\u306e\u3068\u3053\u308d\u3001obj.method(z)\u306f\u3001Cls.method(obj, z)\u306e\u7cd6\u8863\u69cb\u6587\u306b\u3059\u304e\u306a\u3044\u3002\u3082\u3063\u3068\u3082\u3001\u5f8c\u8005\u306f\u4f7f\u3046\u6a5f\u4f1a\u304c\u306a\u3044\u3051\u308c\u3069\u30fb\u30fb\u30fb","author_name":"kaisk","height":"190","blog_title":"keisuke\u306e\u30d6\u30ed\u30b0","width":"100%","url":"https://kaisk.hatenadiary.com/entry/2014/10/18/010856","image_url":null,"blog_url":"https://kaisk.hatenadiary.com/","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","published":"2014-10-18 01:08:56"}