摘要: 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) 阅读全文
posted @ 2022-03-10 22:47 xuecl 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 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) 阅读全文
posted @ 2022-03-10 22:34 xuecl 阅读(120) 评论(0) 推荐(0) 编辑