在添加行的情況下,最好的選擇是創建一個與數據集最終大小一樣大的數組,然後逐行向其中添加數據: >>> import numpy >>> a = numpy.zeros(shape=(5,2)) >>> a array([[ ...
確定! 回上一頁