Python使用笔记
1python中字节与字符串的转换#bytes object byte = b"byte example" # str object str = "str example" # str to bytes 字符串转字节 bytes(str, encoding="utf8") # bytes to str 字节转字符串 str(bytes, encoding="utf-8") # an alternative method ...
原创
2021-06-14 16:59:30 ·
327 阅读 ·
1 评论