示例#1
0
def cleanPaths(ps, solutions):
    offset = 0
    for s, i in zip(solutions, xrange(100000)):
        for j in range(s - offset):
            ps.erasePath(i)
            offset += 1
        offset += 1
示例#2
0
def cleanPaths(ps, solutions):
    offset = 0
    for i, s in enumerate(solutions):
        for j in range(s - offset):
            ps.erasePath(i)
            offset += 1
        offset += 1