机器学习——reshape函数和resize函数 import numpy as np x1=np.arange(12) x2=x1.reshape((3,4))#原数组不发生改变 print(x1,x2) x3