L=[1,2,3,2,4,3] x=dict((a,L.count(a)) for a in L) y=[k for k,v in x.items() if max(x.values())==v] print(y) 结果是[2, 3] ...全文 ...
確定! 回上一頁