{"height":"190","width":"100%","image_url":null,"categories":["Python"],"provider_url":"https://hatena.blog","title":"Tips\uff1a\u65b0\u65e7\u30af\u30e9\u30b9\u5bfe\u6c7a\uff1f\u300a\u7b2c\uff12\u7248\u300b","description":"Python \u306b\u306f\uff08\u6b74\u53f2\u7684\u306a\u7d4c\u7def\u304b\u3089\uff09\u65b0\u65e7\uff12\u3064\u306e\u30af\u30e9\u30b9\u4f53\u7cfb\u304c\u5b58\u5728\u3057\u307e\u3059\u3002 def ex(x): print \"type(x) == x.__class__:\",type(x)==x.__class__ print \"type(x):\",type(x) print \"x.__class__:\",x.__class__ \u7d44\u307f\u8fbc\u307f\u95a2\u6570 type \u3092\u5229\u7528\u3059\u308b\u3068\u3001\u5f15\u6570\u306e\uff08\u6307\u5b9a\u3057\u305f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u898f\u5b9a\u3059\u308b\uff09\u578b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002\u307e\u305f\u3001\u5c5e\u6027 __class__ \u3092\u53c2\u7167\u3059\u308b\u3068\u3001\u5f15\u6570\u306e\uff08\u6307\u5b9a\u3057\u305f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u5c5e\u3059\u308b\uff09\u30af\u30e9\u30b9\u304c\u5f97\u3089\u308c\u307e\u3059\u3002 class Polish: pass >>> x = Polish(); ex()\u2026","author_url":"https://blog.hatena.ne.jp/kotsubu-chan/","blog_title":"\u7d9a\u30fb\u3072\u3088\u5b50\u306e\u304d\u3082\u3061","author_name":"kotsubu-chan","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkotsubu-chan.hatenadiary.org%2Fentry%2F20040602%2F1232019802\" title=\"Tips\uff1a\u65b0\u65e7\u30af\u30e9\u30b9\u5bfe\u6c7a\uff1f\u300a\u7b2c\uff12\u7248\u300b - \u7d9a\u30fb\u3072\u3088\u5b50\u306e\u304d\u3082\u3061\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://kotsubu-chan.hatenadiary.org/entry/20040602/1232019802","type":"rich","version":"1.0","published":"2004-06-02 20:43:22","blog_url":"https://kotsubu-chan.hatenadiary.org/"}