摘要: class CustomException(exceptions.Exception): def __init__(self, error_info): Exception.__init__(self, error_info) self.error = error_info def __str__(self): return self.errortry: xxexcept: ... 阅读全文
posted @ 2018-11-09 16:23 ADChen 阅读(370) 评论(0) 推荐(0) 编辑
摘要: import websocket ws = websocket.WebSocket() ws.connect("xx.xx.xx") ws.send("string") ws.recv() 阅读全文
posted @ 2018-11-09 16:17 ADChen 阅读(7105) 评论(0) 推荐(0) 编辑