python3 linux 下获取本地网卡ip

system ubuntu14.04 python3.6.1 def get_ip_address(ifname): s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) return socket.inet_ntoa(fcntl.ioctl( s.fileno(), 0x8915, # SIOC
相关文章
相关标签/搜索