I need to know if it is possible to save a python list as a numPy array.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
you mean something like this ?
Yes it is:
You want to save it as a file?
... and then read:
You can use numpy.asarray, for example to convert a list into an array:
maybe:
output:
Here is a more complete example:
Hope this helps!!