numpy.reshape扩展维度import numpy as np val = np.arange(5) print(val) re = val.reshape((-1, 1)) print('-' * 20) print(re) 执行结果: [0 1 2 ...
確定! 回上一頁