micropython-lib/itertools/test_itertools.py

6 wiersze
177 B
Python
Czysty Zwykły widok Historia

2014-04-18 01:30:29 +00:00
import itertools
print(list(itertools.islice(list(range(10)), 4)))
print(list(itertools.islice(list(range(10)), 2, 6)))
print(list(itertools.islice(list(range(10)), 2, 6, 2)))