python报错:TypeError: ‘type‘ object is not subscriptable

项目场景: 问题描述: python报错:TypeError: 'type' object is not subscriptable 原因分析: 数组不存在 解决方案: 把对数组的排序写成了 c=c.sort()    但实际上应该是 c.sort() 而 c=sorted(c)
相关文章
相关标签/搜索