'asddf'.count('d'),返回值为2. size()和shape () 是numpy模块中才有的函数. size():计算数组和矩阵所有数据的个数 a = np.array([[1,2,3],[4,5,6]])
確定! 回上一頁