remote_machine远程抓取主机
import socket
remote_host ="www.guixiang.fun"
print(socket.gethostbyname(remote_host))

import socket
remote_host ="www.guixiang.funiii"
try:
print(socket.gethostbyname(remote_host))
except socket.gaierror:
print("can not find")


浙公网安备 33010602011771号