代码差异对比神器、二维码实时生成、图片提取文字、拾取图片颜色、图片在线压缩、网页提取图片、图片转Base64、网站技术栈检测
☞ 一键购买个人专属 DeepSeek 满血版、Qwen-max、Llama ...
字节转字符串:
st = str(data, encoding = "utf8")
print(st)
print(type(str)) # <class 'str'>
字符串转字节:
by = bytes(st, encoding = "utf8")
print(by)
print(type(by)) # <class 'bytes'>
Refer:在线运行Python代码
Link:https://www.cnblogs.com/farwish/p/13219028.html
posted on 2020-07-01 14:21 ercom 阅读(1194) 评论(0) 收藏 举报