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
相關文章
相關標籤/搜索