python應(yīng)用操作——找到列表中出現(xiàn)最頻繁的數(shù)
提問(wèn)人:ylm發(fā)布時(shí)間:2020-09-29
In [82]: test = [1,2,3,4,2,2,3,1,4,4,4]
In [83]: print(max(set(test),key=test.count))
4
繼續(xù)查找其他問(wèn)題的答案?
相關(guān)視頻回答
In [82]: test = [1,2,3,4,2,2,3,1,4,4,4]
In [83]: print(max(set(test),key=test.count))
4
點(diǎn)擊加載更多評(píng)論>>