Example 1: vectorize function python numpy >>> vfunc = np.vectorize(myfunc) >>> vfunc([1, 2, 3, 4], 2) array([3, 4, 1, 2]) Example 2: vectorize function ...
確定! 回上一頁