点击运行
import numpy as np a = np.array([[1,2,3],[4,5,6]]) a.shape = (3,2) print(a)
运行结果 :
正在执行...