New shape should be compatible to the original shape. astype() instead of a second parameter to frombuffer ; furthermore, I wonder why you use np.
確定! 回上一頁