比方说,我有一个数组
x.shape = (10,1024)
当我尝试打印 x[0].shape
x[0].shape
它打印 1024
当我打印 x.shape[0]
x.shape[0]
它打印 10
我知道这是一个愚蠢的问题,也许还有另一个类似的问题,但有人可以向我解释一下吗?
python arrays numpy
arrays ×1
numpy ×1
python ×1