shape()和reshape()都是數組array中的方法1. shape() import numpy as np a = np.array([1,2,3,4,5,6,7,8]) #一維數組print(a.shape[0])
確定! 回上一頁