效果图:

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

解决办法:

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

原因:

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

  属性错误: list对象没有sorted属性方法。

   sorted()语法: sorted(序列名,key=排序方式) 

sorted()用法:

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

 

相关文章: