Encode a string in UTF-8 string = "Hello, 世界" encoded_string = string.encode("utf-8") print(encoded_string) # b'Hello, \xe4\xb8\x96\xe7\x95\x8c' # Decode ...
確定! 回上一頁