str.encode(‘utf-8’) str 转换为bytes
bytes.decode(‘utf-8’) bytes转换为str
python str与bytes转换
最新推荐文章于 2024-05-28 11:35:30 发布
str.encode(‘utf-8’) str 转换为bytes
bytes.decode(‘utf-8’) bytes转换为str