<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>round-rand</author_name>
  <author_url>https://blog.hatena.ne.jp/round-rand/</author_url>
  <blog_title>ランドML</blog_title>
  <blog_url>https://ml-rand-note.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>はじめに dataclassの長所 dataclassの使い方 基本的な使い方 リスト・辞書型変数の宣言 不変化（イミュータブル化） 比較や並び替え可能にする はじめに Pythonでデータを格納する際に、クラスを定義して__init__で1つずつ代入していくのを面倒に感じたことはないでしょうか？ 下記記事によると、バージョン3.7からはデータ格納に便利なdataclassがあるらしいので、色々調べてみました。 qiita.com dataclassの長所 パラメータの型が明確になる __init__を定義して1つずつ代入が不要になる。 dataclassの使い方 基本的な使い方 class …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fml-rand-note.hatenablog.com%2Fentry%2Fpython%2Fdataclass-basics&quot; title=&quot;【Python】dataclassの使い方 - ランドML&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-02-25 00:00:00</published>
  <title>【Python】dataclassの使い方</title>
  <type>rich</type>
  <url>https://ml-rand-note.hatenablog.com/entry/python/dataclass-basics</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
