更改

跳转至: 导航搜索

Python报错信息

添加404字节, 2020年8月1日 (六) 12:17
创建页面,内容为“Python提示object is not subscriptable的错误 Traceback (most recent call last): File "<pyshell#14>", line 1, in <module> s1 = sm() File "D:\github.com_h...”
Python提示object is not subscriptable的错误

Traceback (most recent call last):
File "<pyshell#14>", line 1, in <module>
s1 = sm()
File "D:\github.com_henry199101\6.00.1x_Files\Week_6\Problem_Set_6\caogao\qwer.py", line 8, in sm
dict[key] = values[keys.index[key] + 3]
TypeError: 'builtin_function_or_method' object is not subscriptable

内建函数或者方法对象不能subscriptable
1,138
个编辑

导航菜单