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]. 已赞过 已踩过<.
確定! 回上一頁