np.newaxis理解 金融小白数据分析之路 2022-09-05 101 阅读1分钟 #newaxis就是增加一维,具体运行看效果 import numpy as np a=np.arange(0,20) print(a) print(a[:,np.newaxis])