Is there any standard and pythonic way to store a small table (consisting of a few rows and a few columns) of constant values as a field in a my class definition?
I'm wondering if it is standard to define such a table of defaults in the class definition, or it is recommended to define it somewhere else.
In fact, depending on some user input, I want to use some row of this table as default value to instantiate my class.
question from:
https://stackoverflow.com/questions/65641330/store-tabular-data-in-class 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…