ndarray对象的内容可以通过索引或切片来访问和修改,与Python 中list 的切片操作一样。 ... import numpy as np a = np.arange(10) s = slice(2,7,2) # 从索引2 开始到 ...
確定! 回上一頁