Python 里建 UDP socket 写法是 socket.socket(AF_INET, SOCK_DGRAM),其中决定「是 UDP 不是 TCP」的是【0】。
socket.socket(AF_INET, SOCK_DGRAM)
全部评论