pythonCopy import numpy as np array = np.array([1,2,3,4,5]) reverse = array[::-1] print(reverse). 輸出: textCopy [5 4 3 2 1].
確定! 回上一頁