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

效果图:

解决办法:

原因:

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

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

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

sorted()用法:

猜你喜欢

转载自www.cnblogs.com/FlyingLiao/p/11297828.html