发布时间:2019-08-30 09:29:51编辑:auto阅读(2119)
##注意要安装 pip install websocket-client
from websocket import create_connection ws = create_connection("ws://127.0.0.1:9002") ws.send("Hello, World")##发送消息 result = ws.recv()##接收消息 ws.close()
上一篇: python 基础知识汇总(注释规范)
下一篇: 【算法——Python实现】最大堆和最小
49252
48419
39143
36240
30649
27457
26450
21281
21126
19476
93°
299°
297°
397°
638°
447°
1127°
1112°
1098°
1092°