上面程序在运行时遇到AttributeError: 'itertools.cycle' object has no attribute 'next'错误,原因是版本问题,只需要将indexer1.next()改为next(indexer1)即可。
AttributeError: 'itertools.cycle' object has no attribute 'next'
最新推荐文章于 2023-12-28 21:16:43 发布
上面程序在运行时遇到AttributeError: 'itertools.cycle' object has no attribute 'next'错误,原因是版本问题,只需要将indexer1.next()改为next(indexer1)即可。