numpy学习(二):常用方法笔记1.numpy数组迭代2.numpy数组拼接3.numpy限制数组中最大值和最小值
1.numpy数组迭代二维数组:import numpy as nparr = np.array([[1, 2, 3], [4, 5, 6]])for x in arr: print(x)三维数组:import numpy as nparr = np.array([[[1, 2, 3], [4, 5, 6]], [[7, 8, 9], [10, 11, 12]]])for x in arr: print("x represents the 2-D array:") p