{"version":"1.0","image_url":null,"categories":[],"description":"Python\u3067\u4eca\u65e5\u306f\u30af\u30e9\u30b9\u306e\u52c9\u5f37\u3002\u3068\u308a\u3042\u3048\u305a\u3001\u30ea\u30b9\u30c8\u307e\u308f\u308a\u306e\u95a2\u6570\u7fa4\u3092\u96c6\u3081\u305f\u30af\u30e9\u30b9\u3092\u4f5c\u308d\u3046\u304b\u3068\u601d\u3063\u3066\u3001\u30ea\u30b9\u30c8\u30af\u30e9\u30b9\u3092\u4f5c\u308b\u3053\u3068\u306b\u3002 \u5358\u7d14\u306b\u3001\u30ea\u30b9\u30c8\u3092\u8868\u793a\u3055\u305b\u308b\u3002 class list: def __init__(self,l): self.l = l def show(self): print self.l if __name__ == \"__main__\": list = list([1,2,3,4,5]) list.show() \u521d\u3081\u3001\u3053\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30e1\u30bd\u30c3\u30c9\u306eshow\u95a2\u6570\u3001 \u3053\u308c\u3092 def show(): \u306e\u3088\u3046\u306b\u5ba3\u8a00\u3057\u3066\u3044\u305f\u3051\u3069\u3001 $ python class.py Traceback (\u2026","width":"100%","provider_name":"Hatena Blog","url":"https://wvogel00.hatenadiary.org/entry/20110902/1314965776","blog_url":"https://wvogel00.hatenadiary.org/","blog_title":"wvogel\u65e5\u8a18","title":"Python class test","published":"2011-09-02 21:16:16","type":"rich","author_name":"wvogel00","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwvogel00.hatenadiary.org%2Fentry%2F20110902%2F1314965776\" title=\"Python class test - wvogel\u65e5\u8a18\" 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/wvogel00/","height":"190"}