numpy.tile 阵列

b = np.array([[1, 2], [3, 4]])
np.tile(b, 2)
array([[1, 2, 1, 2, 1, 2],
       [3, 4, 3, 4, 3, 4],
       [1, 2, 1, 2, 1, 2],
       [3, 4, 3, 4, 3, 4]])

在这里插入图片描述

posted @ 2022-08-19 22:51  luoganttcc  阅读(4)  评论(0)    收藏  举报