How do I use Python class
and datacclass
differently?(How do you use it differently?)
The version is Python 3.9.2.
Looking at the article below, is it better to use datacclass in all cases?
From Python 3.7 "Data Classes" may become the standard class definition - Qiita
python python3
By using "dataclass", you can write a program more concisely than "data", because the definition of class is shorter.This also makes it easier to understand the structure of your data.
© 2024 OneMinuteCode. All rights reserved.