检查一遍报错的所在行,此报错一般是在整数上加了下标:

比如:

  1.  
    a = 4
  2.  
    c=a[2]

报错:line 2, in <module>
    c=a[2]

TypeError: 'int' object is not subscriptable

再比如复杂一点的:二维

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

相关文章:

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