Python不可订阅
发布于 2021-01-29 16:11:31
是什么unsubscriptable
在一个TypeError在上下文意思是:
TypeError: 'int' object is unsubscriptable
编辑:导致此现象的简短代码示例。
a=[[1,2],[5,3],5,[5,6],[2,2]]
for b in a:
print b[0]
> 1
> 5
> TypeError: 'int' object is unsubscriptable
关注者
0
被浏览
51
1 个回答