import numpy as np x = np.array([1,2,3,4,5]) y = np.array([0,2,3,4,6]) z = np.array([[1,2],[3,4]])#二維陣列 np.mean(x==y)#返回條件成立的佔比 Out[5]: ...
確定! 回上一頁