Counter 用法 from collections import Counterfrom collections import Counter a = [1,4,2,3,2,3,4,2] b = Counter(a) #求数组中每个数字出现了几次print(b) print( ...
確定! 回上一頁