Tile. Tile函数可以重复某个数组以构成一个新的数组: m1 = np.arange(4) print(m1) print() m2 = np.tile(m1, (4, 1)) # 重复4个m2矩阵,并将它们按行 ...
確定! 回上一頁