Declaring a Python class/interface using a list of attribute names

后端 未结 0 1582
醉话见心
醉话见心 2021-02-18 18:52

In Python, is there any way to declare a class-like interface with a list of attributes, other than namedtuple? I want to make a mixin from a list of attribute names. My best at

相关标签:
回答
  • 消灭零回复
提交回复
热议问题