发布时间:2019-08-30 09:29:51编辑:auto阅读(2192)
##注意要安装 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实现】最大堆和最小
50533
49845
40440
37447
31863
28741
27665
22444
22441
20754
539°
1156°
944°
871°
1127°
988°
1609°
2990°
2697°
2043°