flip vllbc 收录于 Pandas Api 2022-01-01 约 63 字 预计阅读 1 分钟 次阅读 矩阵的反转,可以按照各个维度很好理解。 例子: cs_matrix = np.array([[ 4, 3, 2, 1, 0], [ 8, 7, 6, 5, 1], [11, 10, 9, 6, 2], [13, 12, 10, 7, 3], [14, 13, 11, 8, 4]]) np.flip(cs_matrix, 0) 变成了: np.flip(cs_matrix, 1) 变成了: Please enable JavaScript to view the comments powered by Valine.