
上QQ阅读APP看书,第一时间看更新
The bytes type – an immutable sequence of bytes
The bytes type is similar to the str type, except that rather than each instance being a sequence of Unicode code points, each instance is a sequence of, well, bytes. As such, bytes objects are used for raw binary data and fixed-width, single-byte character encodings, such as ASCII.