📜  循环列表python代码示例

📅  最后修改于: 2022-03-11 14:45:43.579000             🧑  作者: Mango

代码示例1
from itertools import cycle

lst = ['a', 'b', 'c']

pool = cycle(lst)

for item in pool:
    print item