numpy.tile函数 numpy.tile函数的主要作用:给定一个数组,通过重复指定的次数来构造新数组。 用法 import numpy as np np.tile(A, reps) 参数 A:给定的数组; reps:指定重复次数。 实例 实例1 a = np.array([[