Python報錯信息

從 YTYZX有图有真相的百科
跳到: 導覽搜尋

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