-2
for x in values:
x = header.index["NoExamples*NoFeatures"]
print (x)
当我写这段代码时,第二行有错误。类型错误:'builtin_function_or_method'对象不可自订
"TypeError: 'builtin_function_or_method' object is not subscriptable"
。
你能帮我解答吗?
这是什么标题?以及为什么你再次分配给x?这是价值的客体。 –
好像是'header.index'是一个函数 –
请提供更多详细信息 –