"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_h...”)
 
(無差異)

於 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_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