摘要: #_*_coding:utf8_*_#以下两种方法可以在ubuntu下或者windows下获得本地的IP地址import socket# 方法一localIP = socket.gethostbyname(socket.gethostname())print ("local ip address: ... 阅读全文