学习笔记(16):NumPy数据分析-NumPy数组操作方法-reshape

立即学习:https://edu.csdn.net/course/play/25878/316065?utm_source=blogtoedu

Numpy数组操作方法——resahpe

a1=np.arange(6)

print(a1.shape)

print(a1)

#a1.reshape((2,3))

a2=np.reshape(a1,(2,3))

print(a2)

发布了24 篇原创文章 · 获赞 8 · 访问量 1163

猜你喜欢

转载自blog.csdn.net/qq_41739233/article/details/104278179
今日推荐