import numpy as npa = np.array([1,2,3,4])print a.shape[0]
Why it will output 4
?
The array [1,2,3,4]
, it's rows should be 1
, I think , so who can explain the reason for me?
import numpy as npa = np.array([1,2,3,4])print a.shape[0]
Why it will output 4
?
The array [1,2,3,4]
, it's rows should be 1
, I think , so who can explain the reason for me?