• 翻译问题That’s because a surprising amount of the time, all those longs have the value 0, or maybe 1.

    2015/07/30 艾凌风 2 评论

http://fanyi.jobbole.com/16680/ 这篇文章,关于【Python HOWTOs系列】Sockets编程

In these days of 32 bit machines, the ascii representation of binary data is frequently smaller than the binary representation. That’s because a surprising amount of the time, all those longs have the value 0, or maybe 1. The string “0” would be two bytes, while binary is four. Of course, this doesn’t fit well with fixed-length messages. Decisions, decisions.

对于现如今的32位机器,使用ascii表示二进制数据通常比二进制表示法要小。that’s because a surprising amount of the time, all those longs have the value 0, or maybe 1. 字符“0”为两个字节,而二进制是4个字节。当然,对于固定长度的消息并不适用。Decisions, decisions.

3 收藏


直接登录
最新评论
  • 黄小非 程序员 2015/07/30

    对于现如今的32位机器,使用ascii表示二进制数据通常比二进制表示法要小。这是因为在数据传输的大量时间里,数据流的内容要么是0,要么是1。用字符表示“0”需要两个字节,而用二进制表示要4个字节。当然,这种情况对于固定长度的消息并不适用。所以在选择数据表示法时一定要好好考虑.