摘要:
ip2long = lambda x: sum([256 ** j * int(i) for j, i in enumerate(x.split('.')[::-1])]) long2ip = lambda x: '.'.join(['{:0>3d}'.format(x // (256 ** i) 阅读全文
摘要:
ip2long = lambda x: sum([256 ** j * int(i) for j, i in enumerate(x.split('.')[::-1])]) long2ip = lambda x: '.'.join(['{:0>3d}'.format(x // (256 ** i) 阅读全文