语法:
np.array( [ [1,2,3],[4,5,6] ] )
示例:
import numpy as np
a = np.array([[1,2,3],[4,5,6]])
print(a)
print(a.shape)
print(type(a))
语法:
np.array( [ [1,2,3],[4,5,6] ] )
示例:
import numpy as np
a = np.array([[1,2,3],[4,5,6]])
print(a)
print(a.shape)
print(type(a))