【问题标题】:How to send messages on twisted python package without encoding and decoding?如何在不编码和解码的情况下在扭曲的 python 包上发送消息? 【发布时间】:2021-06-01 14:25:34 【问题描述】: I have three clients and I want to send messages using twisted package on python3 and I don't want to be encoded and decode, I want to send the messages as numbers without enc-dec to string. 【问题讨论】: 嗨。欢迎来到堆栈溢出。请不要发布指向具有源文本图像的外部托管站点的链接。只需将来源的文本放在问题中即可。谢谢。 标签: python twisted 【解决方案1】: 我想将消息作为没有 enc-dec 的数字发送到字符串。 你明白为什么需要编码和解码吗?数据以字节的形式通过网络传递。应用程序负责在更高级别的数据结构之间转换字节。坦率地说,如果不编码和解码为字节,您就无法发送/接收消息。 【讨论】: