唯一目的:短平快!
语言:Python
模块:socket
import socket
target_host="127.0.0.1"
target_port=80
client=socket.socket(socket.AF_INET,socket.SOCK_DGRAM) #创建对象
client.sendto("hello world",(target_host,target_port)) #sendto发送消息
data,addr=client.recvfrom(4096) #recvfrom接收消息
print data