def code2num(code):
    global table
    num = ''
    for v in code:
        if v in table:
            i = table.index(v)
            i = i / 7 + i % 7 - 1
            num += str(i)
        else:
            num += v
    return num
dataset/ETHPy150Open lennylxx/ipv6-hosts/tools/conv.py/code2num/original