Define different output for the _repr_ method when printing a list of objects

前端 未结 0 472
一生所求
一生所求 2021-01-17 08:02

I have a custom class which has implemented the _repr_ method, printing out all the properties of this object, for example:

Id: XXX,
Name: XXX 
P         


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