使用長度為1的陣列才行,比如: x = array([1. , 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9]) y = np.int(x) TypeError: only size-1 arrays can ...
確定! 回上一頁