我們會先import numpy 模組,透過傳入Python的list或tuple到numpy.array() 建立陣列。 >>> import numpy as np >>> a = np.array([1, 2, 3, 4]) #一維 ...
確定! 回上一頁