例如:
from
itertools
import
count
for
i
in
count(
3
):
print
(i)
if
i >
=
11
:
break
结果
>>>
4
5
6
7
8
9
10