AttributeError: 'itertools.cycle' object has no attribute 'next'

AttributeError: 'itertools.cycle' object has no attribute 'next'_第1张图片

上面程序在运行时遇到AttributeError: 'itertools.cycle' object has no attribute 'next'错误,原因是版本问题,只需要将indexer1.next()改为next(indexer1)即可。

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