python str与bytes转换

str.encode(‘utf-8’) str 转换为bytes
bytes.decode(‘utf-8’) bytes转换为str

猜你喜欢

转载自blog.csdn.net/weixin_44311188/article/details/85343972