__str__和__repr__有啥区别呢?

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