Advertisement
JoelSjogren

Untitled

Dec 18th, 2021
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. box% python
  2. Python 3.9.9 (main, Nov 20 2021, 21:30:06)
  3. [GCC 11.1.0] on linux
  4. Type "help", "copyright", "credits" or "license" for more information.
  5. >>> import numpy as np
  6. >>> class A:pass
  7. ...
  8. >>> a=A()
  9. >>> an=np.array([a,a,a])
  10. >>> an
  11. array([<__main__.A object at 0x7efcbb5903a0>,
  12. <__main__.A object at 0x7efcbb5903a0>,
  13. <__main__.A object at 0x7efcbb5903a0>], dtype=object)
  14. >>>
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement