示例#1
0
文件: tests.py 项目: shaung/loops
def test_index():
    l = Loop(range(9))
    for x in l(3):
        print l.index, l.count, l.isfirst(), l.islast(), l.iseven(), x
    print l.isempty()