{"title":"python\u30af\u30e9\u30b9\u306e\u5099\u5fd8\u9332","blog_url":"https://tkdata.hatenablog.com/","author_name":"guitartakahiro","blog_title":"\u6570\u7406\u30b3\u30f3\u30b5\u30eb\u30bf\u30f3\u30c8\u306e\u5099\u5fd8\u9332","author_url":"https://blog.hatena.ne.jp/guitartakahiro/","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftkdata.hatenablog.com%2Fentry%2F2021%2F05%2F16%2F152625\" title=\"python\u30af\u30e9\u30b9\u306e\u5099\u5fd8\u9332 - \u6570\u7406\u30b3\u30f3\u30b5\u30eb\u30bf\u30f3\u30c8\u306e\u5099\u5fd8\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","height":"190","provider_name":"Hatena Blog","url":"https://tkdata.hatenablog.com/entry/2021/05/16/152625","provider_url":"https://hatena.blog","type":"rich","categories":["python"],"description":"python\u30af\u30e9\u30b9\u306b\u304a\u3044\u3066\u3001\u30af\u30e9\u30b9\u5909\u6570\u3068\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5909\u6570\u306e\u9055\u3044\u306b\u3064\u3044\u3066\u8aac\u660e\u3059\u308b\u3002 \u307e\u305a\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30af\u30e9\u30b9\u3092\u5b9a\u7fa9\u3059\u308b\u3002 class ClassVal: x = \"ClassVal\" class InstanceVal: def __init__(self): self.x = \"InstanceVal\" cls_Val = ClassVal() ins_Val = InstanceVal() \u3053\u306e\u6642\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3055\u308c\u305fcls_Val\u306e\u30af\u30e9\u30b9\u5909\u6570\u3001ins_Val\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5909\u6570\u306f\u3044\u305a\u308c\u3082\u8868\u793a\u3067\u304d\u308b print(cls_Val.x) # ClassVal print(ins_Val.x) # \u2026","published":"2021-05-16 15:26:25","version":"1.0"}