#!/bin/env python #coding: utf-8 import socket import struct def ip2int( ip ): return struct.unpack('!L',socket.inet_aton(ip))[0]
本文出自 “某人说我技术宅” 博客,请务必保留此出处http://1992mrwang.blog.51cto.com/3265935/1184905
#!/bin/env python #coding: utf-8 import socket import struct def ip2int( ip ): return struct.unpack('!L',socket.inet_aton(ip))[0]
本文出自 “某人说我技术宅” 博客,请务必保留此出处http://1992mrwang.blog.51cto.com/3265935/1184905