np.newaxis理解 其他 2021-03-24 09:31 0 阅读 #newaxis就是增加一维,具体运行看效果 import numpy as np a=np.arange(0,20) print(a) print(a[:,np.newaxis]) 猜你喜欢