box% python
Python 3.9.9 (main, Nov 20 2021, 21:30:06)
[GCC 11.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> class A:pass
...
>>> a=A()
>>> an=np.array([a,a,a])
>>> an
array([<__main__.A object at 0x7efcbb5903a0>,
<__main__.A object at 0x7efcbb5903a0>,
<__main__.A object at 0x7efcbb5903a0>], dtype=object)
>>>
Comments
0 B
|👍
/👎