1.收发字符串处理

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

# 发送字符处理 str转b
data.encode()

 

相关文章:

  • 2021-05-26
  • 2021-05-21
  • 2021-12-18
  • 2022-02-05
  • 2022-12-23
  • 2021-11-25
  • 2022-02-25
  • 2021-11-25
猜你喜欢
  • 2022-01-13
  • 2022-12-23
  • 2021-09-02
  • 2021-12-07
  • 2022-02-11
  • 2022-01-14
  • 2021-10-21
相关资源
相似解决方案