资讯

It is possible to use generic Python objects as the dtype for a NumPy array, but if you do this, you’ll get no better performance with NumPy than you would with Python generally.
Python 中的 __str__ 方法旨在提供对象的“漂亮”或用户友好的字符串表示形式。 与面向开发人员的 __repr__ 不同,__str__ 方法适用于最终用户。