Python
我有一个列表列表。喜欢
A = [[x,y],[a,b],[c,f],[e,f],[a,b],[x,y]]
我想计算每个列表在主列表中出现的次数。
我的输出应该像
[x,y] = 2 [a,b] = 2 [c,f] = 1 [e,f] = 1
python list count
count ×1
list ×1
python ×1