How do I copy an object when the class contains a __dict__() method

后端 未结 0 509
鱼传尺愫
鱼传尺愫 2021-01-29 03:48

I\'m trying to copy an object using copy.copy() but it doesn\'t work when the class contains a __dict__() method, and errors with AttributeError:

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