项目场景:

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


问题描述:

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


原因分析:

数组不存在


解决方案:

把对数组的排序写成了 c=c.sort()   

但实际上应该是 c.sort()

而 c=sorted(c)

相关文章:

  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
猜你喜欢
  • 2022-12-23
  • 2021-06-18
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案