def num2code(num):
    global table
    code = ''
    for v in num:
        if v in table:
            i = ((ord(v) - ord('0') + 1) * 7) % 36
            code += table[i]
        else:
            code += v
    return code
dataset/ETHPy150Open lennylxx/ipv6-hosts/tools/conv.py/num2code/original