PHP
·
发表于 5年以前
·
阅读量:7437
# 生成一个不可变序列的迭代器:
>>> t = range(11)
>>> t = range(0,11,2)
>>> for e in t:
print(e)
0
2
4
6
8
10