计数排序.py入门级 def count_sort(li,max_count=100): count = [0 for _ in range(max_count 1)] for val in li: count[val] = 1 li.clear() for ind,val in enumerate(count): fo