__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
相關文章
相關標籤/搜索