AttributeError: 'list' object has no attribute 'sorted'

Renderings:

Solution:

the reason:

  AttributeError: 'list' object has no attribute 'sorted'

  Property error: list object is not sorted attribute method.

   sorted () syntax: sorted (sequence name, key = Sort) 

sorted () usage:

 

Guess you like

Origin www.cnblogs.com/FlyingLiao/p/11297828.html