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
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', ...