import numpy as npa = np.array([[2,1],[10,5]])print(a)print(a[:,1])#col 1print(a[1])#row 1print(a[1,1]) #a[1][1]print(a[0:1,0:1]) row 0:1 col 0:1# u, d, v = np.linalg.svd(a)
[[ 2 1]
[10 5]][1 5][10 5]5[[2]][Finished in 0.3s]本文共 229 字,大约阅读时间需要 1 分钟。
import numpy as npa = np.array([[2,1],[10,5]])print(a)print(a[:,1])#col 1print(a[1])#row 1print(a[1,1]) #a[1][1]print(a[0:1,0:1]) row 0:1 col 0:1# u, d, v = np.linalg.svd(a)
[[ 2 1]
[10 5]][1 5][10 5]5[[2]][Finished in 0.3s]转载地址:http://hrlpx.baihongyu.com/