首頁  >  問答  >  主體

python - 如何對清單中的清單進行頻率統計?

例如此列表:

[['software', 'foundation'], ['of', 'the'], ['the', 'python'], ['software', 'foundation'],['of', 'the'], ['software', 'foundation']]


# 进行频率统计,例如输出结果为:
("['software','foundation']", 3), ("['of', 'the']", 2), ("['the', 'python']", 1)
仅有的幸福仅有的幸福2711 天前623

全部回覆(3)我來回復

  • 漂亮男人

    漂亮男人2017-05-18 11:04:05

    雷雷

    回覆
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-18 11:04:05

    雷雷

    回覆
    0
  • 習慣沉默

    習慣沉默2017-05-18 11:04:05

    雷雷

    回覆
    0
  • 取消回覆