python实现socketserver处理多连接 相关逻辑

1.收发字符串处理

# 接收字符处理 b转str
# json_str = str(self.data, encoding="utf8")
 json_str = self.data.decode("utf-8")

# 发送字符处理 str转b
data.encode()
原文地址:https://www.cnblogs.com/zhaoyingjie/p/12910630.html