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

上面程序在運行時遇到AttributeError: 'itertools.cycle' object has no attribute 'next'錯誤,原因是版本問題,只需要將indexer1.next()改爲next(indexer1)即可。
相關文章
相關標籤/搜索