You can try using the numpy.sign function to capture the sign, and just take the square root of the absolute value. import numpy as np x = np.array([-1, 1, ...
確定! 回上一頁