1:统计list中相同的个数,并按大小排序. original_list = ['a', 'b', 'b', 'a', 'd', 'd', 'b', 'z', 'c', 'b', 'r', 's', 'h', 'f', 'f', 's', 'b', 'b', 'y', 'b'] counter = {} for i in original_list: if original_list.count(i) > 1: counter[i] = original_list.count(i) # 按字典的…