So I want to make a function that gives as return-value a list
with the ordered frequency of these names.
(因此,我想制作一个函数,以这些名称的有序频率给出list
作为返回值。)
Essentially all these sublist represent a pair of friends and I want to make a list
of the most popular to the least popular person. (基本上所有这些子列表都代表一对朋友,我想list
一个最受欢迎的list
至最不受欢迎的list
。)
I've tried many things but these sublists are giving me problems. (我尝试了很多事情,但是这些子列表给我带来了问题。)
a = [['Marie', 'Lucas'], ['Lucas', 'Patsy'], ['Emma', 'Lucas'], ['Emma', 'Kevin'], ['Peter', 'Emma'], ['Peter', 'Lucas'], ['Peter', 'Julie'], ['Suzy', 'Tobias']]
ask by matens translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…