1
如何將此轉換:轉換列表轉換成numpy的陣列
x = [(65535, 9976, 65535, 5690, 6.8501953124999995), (65535, 8779, 65312, 5045, 21.178124999999998)]
到numpy的陣列?
如何將此轉換:轉換列表轉換成numpy的陣列
x = [(65535, 9976, 65535, 5690, 6.8501953124999995), (65535, 8779, 65312, 5045, 21.178124999999998)]
到numpy的陣列?
你試過這個嗎?
np.asarray(x)
檢查[this](http://docs.scipy.org/doc/numpy/reference/generated/numpy.asarray.html) – 2014-12-19 08:05:51