numpy.ndarray.squeeze#

方法

ndarray.squeeze(axis=None)#

Remove axes of length one from a.

Refer to numpy.squeeze for full documentation.

也參考

numpy.squeeze

equivalent function