總是忘記,記一下:使用的是轉置函數。
import numpy as np
# 假設data爲您要處理的ndarray數組。shape爲(3,431,1097).則
new_data = np.transpose(data,(1,2,0))
總是忘記,記一下:使用的是轉置函數。
import numpy as np
# 假設data爲您要處理的ndarray數組。shape爲(3,431,1097).則
new_data = np.transpose(data,(1,2,0))
繼續運行 🥋 回憶上次內容 上上次 真寫了 萬行 代碼 這 萬行 代碼 都是寫在 明面 上的 這次 使用git命令 下載了 github上面的倉庫