登录
上传中....
python根据域名获得ip地址
def getIp(domain): import socket myaddr = socket.getaddrinfo(domain,'http')[0][4][0] print(myaddr)