标签:div sock pac name span bsp int 127.0.0.1 color
import socket import struct if __name__ == ‘__main__‘: ip = ‘127.0.0.1‘ int_ip = struct.unpack(‘!I‘, socket.inet_aton(ip))[0] print(int_ip) str_ip = socket.inet_ntoa(struct.pack(‘!I‘, int_ip)) print(str_ip)
标签:div sock pac name span bsp int 127.0.0.1 color
原文地址:http://www.cnblogs.com/stones/p/7358057.html