ValueError: too many values to unpack (expected 2)

解决:
在这里插入图片描述
改写ind也就是tuple元组(感谢大家的帮助)
(稍微记一下,这里将sklearn 改用了scipy)

过程:
在要遍历的列表名称后加.items()
参考链接
改之后出错了,如下:
AttributeError: ‘tuple’ object has no attribute ‘items’

你可能感兴趣的:(python-运行error,python)