sort and sorted differences:

sort and sorted differences:

The method is applied on the sort of the list, sorted can be sorted objects operate all iterations.

list sort method returns a list of the existing operation, no return value, and built-in functions sorted method returns a new list, rather than operation performed on the basis of the original.

Guess you like

Origin www.cnblogs.com/xingkongzhizhu/p/11081649.html