python 字節字符串 相互轉換

#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
相關文章
相關標籤/搜索