__repr__定义一个类的特定返回形式

官方文档: Return a string containing a printable representation of an object. For many types, this function makes an attempt to return a string that would yield an object with the same value when passed t
相关文章
相关标签/搜索