from numpy import * a = [1,2,3,4] print(tile(a,(2,4)))
数据结果: [[1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4] [1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4]]