十月學(xué)習(xí)打卡-numpy-2
import numpy as np
import random1.調(diào)整數(shù)組的形狀
four np.array([[1,2,3],[4,5,6]])
# 修改的是原有的
four.shape (3,2)
print(four)[[1 2][3 4][5 6]]# 返回一個(gè)新的數(shù)組
four_other np.array([[1,2,3],[4,5,6]])
four_other_new four.reshape…