Home > other >  The elements in this list the occurrences of sorting, so why not this way to write
The elements in this list the occurrences of sorting, so why not this way to write

Time:09-21

,1,8,8,2,1 nums=[1]
Nums. Sort (key=lambda x: nums. The count (x))

CodePudding user response:

Sort is inherently without this feature, you also the anonymous functions, why do you think so?
  • Related