{"blog_title":"19\u65e5\u306b\u66f4\u65b0\u3057\u3066\u305f","categories":[],"author_url":"https://blog.hatena.ne.jp/owiewowe/","blog_url":"https://owiewowe.hatenablog.com/","title":"python \u306e class \u3068 dataclass \u3067\u30ea\u30b9\u30c8\u3092\u8a2d\u5b9a\u3059\u308b","width":"100%","published":"2022-05-19 15:00:00","description":"python \u306e class \u3068 dataclass \u3067\u30ea\u30b9\u30c8\u306e\u51e6\u7406\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002class import math sin=[round( math.sin(i*(math.pi/4) ), 1) for i in range(20)] class D(): def __init__(self,width,data): self.data1=[i for i in data] self.width=width def data1(self): return self.data1 def D1(self): return self.data1[self.width -1 :] Ddata=\u2026","author_name":"owiewowe","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fowiewowe.hatenablog.com%2Fentry%2F2022%2F05%2F19%2F150000\" title=\"python \u306e class \u3068 dataclass \u3067\u30ea\u30b9\u30c8\u3092\u8a2d\u5b9a\u3059\u308b - 19\u65e5\u306b\u66f4\u65b0\u3057\u3066\u305f\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","type":"rich","height":"190","version":"1.0","url":"https://owiewowe.hatenablog.com/entry/2022/05/19/150000","provider_name":"Hatena Blog","image_url":null}