数字等在list中的的重复个数很容易统计,比如Counter、count都是很好的办法。
但是当子元素为list的时候,怎么统计重复个数呢?
#查重复数list
def count_total():
L = [[1,2,3],[1,2]
数字等在list中的的重复个数很容易统计,比如Counter、count都是很好的办法。
但是当子元素为list的时候,怎么统计重复个数呢?
#查重复数list
def count_total():
L = [[1,2,3],[1,2]