How to make a numpy array from raw input in python? - Stack Overflow

How to make a numpy array from raw input in python? - Stack Overflow

瀏覽:567
日期:2025-11-16
raw_input is returning a string. If you feed this string directly to np.array , you get back a NumPy scalar: In [17]: np.array('foo') Out[17]: array('foo', ......看更多