计算机存储的是bytes,如果需要将bytes转换为str时需要decode编码来实现
如果要将str转换为bytes时,需要通过encode来实现。
bytes-> decode->str
str-> encode->bytes
计算机存储的是bytes,如果需要将bytes转换为str时需要decode编码来实现
如果要将str转换为bytes时,需要通过encode来实现。
bytes-> decode->str
str-> encode->bytes

被折叠的 条评论
为什么被折叠?