首页
it技术
登录
6mi
u
盘
搜
搜 索
it技术
Python sock 编程 UPD通信
Python sock 编程 UPD通信
it
2023-12-15
63
import
socket ClientSocket
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_DGRAM
)
#创建套接字
sendtoAddr
=
(
"192.168.31.112"
,
7561
)
#接收方的地址,端口
ClientSocket
.
sendto
(
b
"hello,python"
,
sendtoAddr
)
#发送数据
转载请注明原文地址: https://lol.8miu.com/read-12220.html
最新回复
(
0
)