- 博客(1)
- 资源 (2)
- 收藏
- 关注
原创 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, # SIOCG
2017-09-21 14:07:58 1924
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人