import numpy as np #bincount():統計非負整數的個數,不能統計浮點數counts = np.bincount(nums) #返回眾數 np.argmax(counts). 求眾數方法二—— ...
確定! 回上一頁