📅  最后修改于: 2022-03-11 14:45:51.354000             🧑  作者: Mango
代码示例1
from itertools import islice
for i in islice(range(20), 1, 5): # islice(items, start, stop, step)
print(i)
# Output:
# 1 2 3 4