Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement