__str__和__repr__有啥區別呢?

>>> class Item(): ...     def __init__(self): ...         self.code = '' ...         self.data = '' ...     def __str__(self): ...         """ support a nice string representation with all attribute v
相關文章
相關標籤/搜索