Python关于 'object is not subscriptable' 的错误
解释subscriptable:可 下标 访问的在此指的是用下标来访问数据的错误原因下标变量越界错误行对象不支持下标括号访问python代码示例a = 8print(a[0])TypeError: ‘int’ object is not subscriptablenumbers = list[range(1,41)]print(numbers)TypeError:...
原创
2020-04-29 18:42:19 ·
40709 阅读 ·
1 评论