python Copy import numpy as np arr = [1, 3, 5, 7] out_arr = np.zeros(4) arr_sq = np.square(arr, out_arr) print(out_arr) print(arr_sq).
確定! 回上一頁