field with default_factory=list cannot append

后端 未结 0 549
渐次进展
渐次进展 2020-11-30 01:59

I want to set default empty list using field(default_factory=list). Then I will need to add to this list using append. But when I append, I get an AttributeError: \'Field\'

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